/* ============================================
   Auth Pages — Premium ClassoraGen Login
   Clean, modern with Billpas teal aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: #F0F4F4;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Left Branding Panel ──────────────────── */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #1a3c40 0%, #1f9e8b 50%, #24b09a 100%);
    overflow: hidden;
}

/* Decorative circles */
.auth-branding::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -120px;
    right: -100px;
}

.auth-branding::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    bottom: -80px;
    left: -60px;
}

.auth-branding .brand-content {
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-branding .brand-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.auth-branding .brand-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.auth-branding .brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth-branding .feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0;
}

.auth-branding .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 10px 0;
    font-weight: 500;
}

.auth-branding .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 15px;
    flex-shrink: 0;
}

/* Floating shapes — subtle teal hues */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: authFloat 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 200px; height: 200px; top: 10%; left: 5%;
}

.floating-shape:nth-child(2) {
    width: 150px; height: 150px; top: 60%; left: 20%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.floating-shape:nth-child(3) {
    width: 120px; height: 120px; top: 35%; left: 45%;
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15px, -20px) scale(1.03); }
    50% { transform: translate(-8px, 15px) scale(0.97); }
    75% { transform: translate(10px, 8px) scale(1.01); }
}

/* ─── Right Panel — Form ───────────────────── */
.auth-form-panel {
    width: 520px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    z-index: 1;
    background: #FFFFFF;
}

/* ─── Auth Card ────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-card .auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #1f9e8b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(31, 158, 139, 0.3);
}

.auth-card .auth-title {
    font-size: 26px;
    font-weight: 800;
    color: #1A2E35;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-card .auth-subtitle {
    font-size: 14px;
    color: #7A8F8C;
}

/* ─── Form Controls ────────────────────────── */
.auth-card .form-group {
    margin-bottom: 22px;
}

.auth-card .form-label {
    color: #3A4F4C;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.auth-card .form-control {
    width: 100%;
    background: #F5F8F8;
    border: 1.5px solid #E2ECEA;
    color: #1A2E35;
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-card .form-control::placeholder {
    color: #9BABA8;
}

.auth-card .form-control:focus {
    border-color: #1f9e8b;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(31, 158, 139, 0.12);
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9BABA8;
    font-size: 16px;
    pointer-events: none;
}

.input-icon-wrapper .form-control {
    padding-left: 42px;
}

.input-icon-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9BABA8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.15s;
}

.input-icon-wrapper .toggle-password:hover {
    color: #1f9e8b;
}

/* ─── Auth Button ──────────────────────────── */
.auth-card .btn-auth {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: #1f9e8b;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.auth-card .btn-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #178272, #1f9e8b);
    opacity: 0;
    transition: opacity 0.25s;
}

.auth-card .btn-auth:hover::before {
    opacity: 1;
}

.auth-card .btn-auth span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-card .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 158, 139, 0.35);
}

.auth-card .btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(31, 158, 139, 0.25);
}

/* ─── Remember & Forgot ────────────────────── */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-options .form-check-input {
    width: 16px;
    height: 16px;
    accent-color: #1f9e8b;
    cursor: pointer;
}

.auth-options .form-check-label {
    color: #5A6B6F;
    font-size: 13px;
    cursor: pointer;
}

.auth-options .forgot-link {
    color: #1f9e8b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-options .forgot-link:hover {
    color: #178272;
}

/* ─── Divider ──────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2ECEA;
}

.auth-divider span {
    color: #9BABA8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── OTP Login Button ─────────────────────── */
.btn-otp-login {
    width: 100%;
    padding: 12px;
    background: #F5F8F8;
    border: 1.5px solid #E2ECEA;
    border-radius: 10px;
    color: #3A4F4C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-otp-login:hover {
    background: #EAF0EF;
    border-color: #D0DFDD;
    color: #1f9e8b;
}

/* ─── Auth Footer ──────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #E2ECEA;
}

.auth-footer p {
    color: #9BABA8;
    font-size: 12px;
}

.auth-footer a {
    color: #1f9e8b;
    font-weight: 600;
    text-decoration: none;
}

/* ─── Alerts ───────────────────────────────── */
.auth-card .alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertSlideIn 0.3s ease;
}

.auth-card .alert-success {
    background: #E5F5F2;
    border-left-color: #1f9e8b;
    color: #155D50;
}

.auth-card .alert-error {
    background: #FEF2F2;
    border-left-color: #EF4444;
    color: #991B1B;
}

.auth-card .alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

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

/* ─── OTP Input Group ──────────────────────── */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: #F5F8F8;
    border: 2px solid #E2ECEA;
    border-radius: 10px;
    color: #1A2E35;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.otp-input:focus {
    border-color: #1f9e8b;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(31, 158, 139, 0.12);
}

.resend-timer {
    text-align: center;
    font-size: 13px;
    color: #9BABA8;
    margin-top: 16px;
}

.resend-timer a {
    color: #1f9e8b;
    font-weight: 600;
    pointer-events: none;
    opacity: 0.5;
    text-decoration: none;
}

.resend-timer a.active {
    pointer-events: auto;
    opacity: 1;
}

/* ─── Powered By (auth page) ───────────────── */
.auth-powered {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.auth-powered a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-panel {
        width: 100%;
        background: #F0F4F4;
    }

    .auth-card {
        background: #FFFFFF;
        border-radius: 16px;
        padding: 36px 28px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 20px;
    }
    
    .auth-card {
        padding: 28px 22px;
    }
    
    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }
}
