/* Color Variables */
:root {
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E68A00;
    --white: #FFFFFF;
    --yellow: #FFD700;
    --yellow-light: #FFE44D;
    --gray-light: #F5F5F5;
    --gray: #6c757d;
    --gray-dark: #343a40;
}

/* Form spacing and layout */
.auth-form {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 2rem 2rem;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    position: relative;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1rem 0;
    width: 100%;
}

.form-row .form-group {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row .form-group {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
}

/* Input fields */
.input-with-icon {
    position: relative;
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--gray);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
.input-with-icon input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--white);
    color: var(--gray-dark);
    box-sizing: border-box;
}

input:focus,
.input-with-icon input:focus {
    border-color: var(--saffron);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

/* Radio button styles */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0 0;
    padding: 0.25rem 0;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    margin: 0.5rem 0;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--gray-dark);
    height: 24px;
}

.radio-option + .radio-option {
    margin-left: 1.5rem;
}

.radio-option:hover {
    color: var(--saffron);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-option:hover .radio-custom {
    border-color: var(--saffron);
}

.radio-option input:checked ~ .radio-custom {
    background-color: var(--saffron);
    border-color: var(--saffron);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.radio-option input:checked ~ .radio-custom:after {
    display: block;
}

/* NSS Details Section */
#nssDetails {
    margin: 1rem 0 0;
    padding: 1.25rem;
    background-color: rgba(255, 153, 51, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 153, 51, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

#nssDetails.show {
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#nssDetails .input-with-icon {
    margin-top: 0.75rem;
}

#nssDetails .form-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

/* NSS Details Section - Moved and enhanced above */

/* Form note text */
.form-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
    display: block;
}

/* Password strength meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background-color: rgba(255, 153, 51, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    background-color: var(--saffron);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
    display: block;
}

/* Terms and conditions */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.terms input[type="checkbox"] {
    margin-top: 0.25rem;
}

.terms label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.terms a {
    color: var(--saffron);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--saffron);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--saffron-dark);
    border-color: var(--saffron-dark);
    transform: translateY(-1px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Toggle password visibility */
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--saffron);
}

/* Auth & Navigation Styling */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--white);
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.auth-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin: 0 -0.5rem;
}

.form-row .form-group {
    flex: 1;
    margin: 0 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--saffron);
}

.toggle-password:hover {
    color: var(--saffron);
}

.remember-me,
.terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.remember-me input,
.terms input {
    width: auto;
    margin: 0;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--saffron);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #2541b2;
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--saffron);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--saffron-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--saffron);
    color: var(--saffron);
}

.btn-outline:hover {
    background: rgba(255, 153, 51, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 153, 51, 0.2);
    background: var(--white);
    color: var(--gray-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background: var(--white);
    border-color: var(--saffron-light);
}

.btn-social img,
.btn-social i {
    width: 18px;
    height: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--saffron);
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-meter {
    height: 4px;
    background: var(--saffron-dark);
    border-radius: 2px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: var(--saffron);
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    color: var(--gray);
}

.strength-text span {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card {
        margin: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin: 0 0 1rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}
