/* FindNext - Authentication Pages Stylesheet */
/* Styles for login, register, forgot password, and OTP verification pages */

/* Main auth page wrapper - centers content vertically */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--light);
}

.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: slideUp 0.4s ease;
    border: 1px solid var(--gray-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.auth-header h2 {
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.875rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.divider span {
    padding: 0 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    text-decoration: underline;
}

.info-box {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #0c4a6e;
    font-size: 0.875rem;
}

/* OTP Specific Styles */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-weak {
    color: #dc2626;
}

.strength-medium {
    color: #f59e0b;
}

.strength-strong {
    color: #10b981;
}

.password-requirements {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.password-requirements li {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

/* Role Selection Grid (Register Page) */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Button Styles for Auth Pages */
.auth-card .btn,
.auth-card .btn-primary,
.auth-card .btn-secondary,
.auth-card .btn-success {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .auth-page {
        padding: 0.5rem;
    }

    .auth-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    .auth-header i {
        font-size: 2rem;
    }

    .auth-header h2 {
        font-size: 1.35rem;
    }

    .auth-header p {
        font-size: 0.875rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .auth-card .btn,
    .auth-card .btn-primary,
    .auth-card .btn-secondary,
    .auth-card .btn-success {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .otp-inputs {
        gap: 0.5rem;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 1.25rem;
    }

    .info-box {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .password-requirements li {
        font-size: 0.825rem;
    }

    .role-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .back-link {
        margin-top: 1.25rem;
        font-size: 0.9rem;
    }

    /* Modal specific - keep as card */
    .modal-dialog {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
    }

    .modal-content {
        padding: 0;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h4,
    .modal-header .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        flex: 1;
        margin: 0;
        padding: 0.875rem 0.5rem;
        font-size: 0.9rem;
    }
}
