.form-title {
    font-family: "DM Sans", sans-serif;
    text-align: center;
    font-size: 35px;
    font-weight: 600;
    padding: 0px;
    margin: 0px;
}

.form-subtitle {
    font-family: "DM Sans", sans-serif;
    text-align: center;
    font-size: 15px;
    margin-bottom: 30px;
}

.dynamic-form-container {
    font-family: "DM Sans", sans-serif;
    width: 100%;
    max-width: 600px;
    min-width: 600px;
    padding: 3rem;
    background: #fff;
    border-radius: 10px;
    margin: 0 auto 50px auto;
    box-shadow: 0 0 0 1px rgba(103, 61, 230, 0.05);
    box-sizing: border-box;
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.styled-form label {
    font-weight: 500;
    color: #2a2a2a;
    font-size: 15px;
}

.styled-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #ececff;
    font-size: 15px;
    background-color: #fafbff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.styled-form input:focus {
    border-color: #673de6;
    background-color: #fff;
    outline: none;
}

.btn-submit {
    background-color: #673de6;
    color: #fff;
    border: none;
    padding: 0.9rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #5025d1;
}

.back-login-link {
    text-align: center;
    margin-top: 15px;
}

.back-login-link a {
    text-decoration: none;
    color: #673DE6;
}

.password-criteria {
    margin-bottom: 10px;
}

.criterion {
    font-size: 13px;
    margin: 2px 0;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.form-error {
    background: #ffe6e6;
    color: #a30000;
    border: 1px solid #ffbfbf;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-success {
    background: #e9f9ed;
    color: #0f7b20;
    border: 1px solid #c8e8ce;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .dynamic-form-container {
        padding: 1.5rem;
        min-width: 100% !important;
    }

    .form-title {
        font-size: 25px;
    }

    .styled-form input {
        font-size: 16px;
    }

    .form-subtitle {
        font-size: 17px;
    }
}