/* ============================================
   PayFyre Auth & Frontend Styles
   Clean, standalone auth page styling
   ============================================ */

/* ---------- Auth Page Reset ---------- */
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.auth-page {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: #F8FAFB;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.auth-page a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Auth Nav ---------- */
.auth-nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E2E2;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.auth-nav .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #00E556;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.auth-nav .logo-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    color: #1a1a2e;
}

.auth-nav .nav-link {
    color: #555;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background 0.15s;
}

.auth-nav .nav-link:hover {
    background: #F1F5F9;
}

/* ---------- Auth Main ---------- */
.auth-main {

/* ---------- Back Link ---------- */
.auth-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #64748B; margin-bottom: 16px; transition: color 0.15s; }
.auth-back-link:hover { color: #0F172A; }
.auth-back-link svg { flex-shrink: 0; }
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ---------- Auth Card ---------- */
.auth-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E8ECEF;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}

.auth-card--narrow {
    max-width: 420px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 16px;
    }
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.auth-card .subtitle {
    color: #888;
    font-size: 15px;
    margin-bottom: 32px;
}

/* ---------- Auth Form ---------- */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}

.auth-form-group input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #E2E2E2;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #FAFBFC;
    color: #1a1a2e;
    outline: none;
}

.auth-form-group input:focus {
    border-color: #00E556;
    box-shadow: 0 0 0 3px rgba(0,229,86,0.12);
    background: #FFFFFF;
}

.auth-form-group input::placeholder {
    color: #B0B8C1;
}

.auth-form-group.has-error input {
    border-color: #EF4444;
}

.auth-form-group .error-text {
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    font-weight: 500;
}

.auth-form-row {
    display: flex;
    gap: 14px;
}

.auth-form-row .auth-form-group {
    flex: 1;
}

/* ---------- Auth Remember Row ---------- */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.auth-remember-row label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: #00E556;
}

.auth-remember-row a {
    font-size: 14px;
    color: #00A86B;
    font-weight: 600;
}

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

/* ---------- Auth Submit Button ---------- */
.auth-btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: #00E556;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
    transition: background 0.15s;
}

.auth-btn-submit:hover {
    background: #00C44A;
}

.auth-btn-submit:active {
    background: #00B040;
}

/* ---------- Auth Alert ---------- */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.auth-alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.auth-alert-warning {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    text-align: center;
}

/* ---------- Auth Divider ---------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* ---------- Auth Links ---------- */
.auth-signup-link {
    text-align: center;
    font-size: 14.5px;
    color: #888;
}

.auth-signup-link a {
    display: inline;
    color: #00A86B;
    font-weight: 700;
}

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

.auth-login-link {
    text-align: center;
    font-size: 14.5px;
    color: #666;
    margin-top: 0;
}

.auth-login-link a {
    display: inline;
    color: #00A86B;
    font-weight: 700;
}

.auth-login-link a:hover {
    display: inline;
    text-decoration: underline;
}

.auth-terms {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #999;
}

.auth-terms a {
    display: inline;
    color: #00A86B;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

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

/* ---------- Auth Footer ---------- */
.auth-footer {
    text-align: center;
    padding: 24px;
    color: #B0B8C1;
    font-size: 13px;
}

.auth-footer a {
    color: #888;
}

.auth-footer a:hover {
    color: #555;
}

/* ---------- Auth Back Link ---------- */
.auth-back {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.auth-back a {
    color: #6B7280;
    font-weight: 500;
}

.auth-back a:hover {
    color: #1a1d29;
}

/* ---------- Admin Login Wrapper ---------- */
.admin-login-wrapper {
    width: 100%;
    max-width: 440px;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-login-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: #00E556;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.admin-login-logo .logo-text {
    font-weight: 800;
    font-size: 24px;
    color: #1a1d29;
    letter-spacing: -0.02em;
}

.admin-login-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #E8ECEF;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px;
}

.admin-login-card h1 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1d29;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.admin-login-card .subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 28px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .admin-login-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .auth-card {
        padding: 36px 24px;
        border-radius: 16px;
    }
}

/* ---------- Admin Login Body Helper ---------- */
.auth-page-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ---------- Admin Badge ---------- */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1d29;
    background: #F1F5F9;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.admin-badge svg {
    color: #00E556;
}

.auth-back {
    text-align: center;
    margin-top: 24px;
}

.auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    transition: color 0.15s;
}

.auth-back a:hover {
    color: #1a1d29;
}

.auth-alert-warning {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    color: #92400E;
}

/* ---------- Password Toggle (Eye Icon) ---------- */
.pw-toggle-wrapper {
    position: relative;
    width: 100%;
}

.pw-toggle-wrapper input {
    padding-right: 46px !important;
}

.pw-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border: none;
    border-left: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.15s, background 0.15s;
    padding: 0;
    border-radius: 0 12px 12px 0;
}

.pw-toggle-btn:hover {
    color: #1a1a2e;
    background: rgba(0,0,0,0.02);
}

.pw-toggle-btn:focus {
    outline: none;
}

.pw-toggle-btn svg {
    pointer-events: none;
}

/* Dark input backgrounds — keep button seamless */
input.pf-form-control + .pw-toggle-btn {
    border-radius: 0 14px 14px 0;
}

/* Phone input dial code spacing */
.iti { width: 100%; }
.iti__flag-container { min-width: 80px; }
.iti--separate-dial-code .iti__selected-flag { padding-right: 10px; }


/* Footer links inline */
.auth-footer a { display: inline; }

/* ===== Login Page Split Layout ===== */
.login-page-split { display: flex; min-height: 100vh; }
.login-brand-panel { width: 42%; background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0F172A 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.login-brand-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.12) 0%, transparent 60%); }
.login-brand-content { position: relative; z-index: 1; text-align: center; padding: 48px; max-width: 420px; }
.login-brand-content .brand-logo { margin-bottom: 48px; }
.login-brand-content .brand-logo img { height: 36px; }
.login-brand-content h2 { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin: 0 0 8px; }
.login-brand-content p { font-size: 16px; color: #94A3B8; line-height: 1.6; margin: 0 0 40px; }
.login-brand-illustration img { max-width: 280px; opacity: 0.9; }
.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; padding: 48px; }
.login-form-panel .auth-card--login { width: 100%; max-width: 420px; }

/* Title/Subtitle in auth cards */
.auth-title { font-size: 24px; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; margin: 0 0 4px; }
.auth-subtitle { font-size: 14px; color: #64748B; margin: 0 0 24px; }
.auth-subtitle a { color: var(--pf-primary, #6366F1); font-weight: 600; text-decoration: none; }
.auth-subtitle a:hover { text-decoration: underline; }

/* Form labels in auth */
.auth-form-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }

/* Error text */
.error-text { display: block; font-size: 12px; color: #EF4444; margin-top: 4px; }

/* Responsive */
@media (max-width: 991px) {
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 32px 24px; }
}

/* ===== Auth Back Link ===== */
.auth-back-link-text { margin-left: 4px; }
