/* ── Login / Account page styles ── */

/* ── Page ── */
html, body {
    height: 100%;
    background: #e8edf5;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
    margin-top: -40px;
}

/* ── Wrapper / animation ── */
.login-wrapper {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card (two-column grid) ── */
.login-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.05),
        0 4px 8px rgba(0,0,0,0.06),
        0 16px 40px rgba(0,0,0,0.12),
        0 40px 80px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 260px 1fr;
}

/* ── Left branding column ── */
.card-brand {
    position: relative;
    overflow: hidden;
    min-width: 260px;
    background-color: #0a2558;
    background-image:
        radial-gradient(ellipse 140% 80% at 15% 115%, rgba(0,200,83,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 100% 60% at 85% -15%, rgba(255,255,255,0.07) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 55%, rgba(14,66,212,0.35) 0%, transparent 65%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Dot-grid texture overlay */
.card-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Remove the old radial glow — replaced by background-image gradients */
.card-brand::after {
    display: none;
}

.brand-top {
    position: relative;
    z-index: 1;
    flex: 1;
}

.brand-connect {
    position: absolute;
    bottom: 40px;
    left: 32px;
    z-index: 1;
    text-align: left;
}

.brand-connect img {
    height: 63px;
    width: auto;
}

.brand-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Unused brand elements — keep rules for compat */
.brand-wordmark { display: none; }
.brand-copy { display: none; }
.brand-pills { display: none; }
.brand-pill { display: none; }
.brand-pill-dot { display: none; }
.brand-foot { display: none; }

/* ── Right form column ── */
.login-card-body {
    flex: 1;
    padding: 48px 44px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card-body form {
    flex: unset;
    min-height: unset;
    padding: 0;
}

/* ── Heading ── */
.login-card-body .login-heading {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #040915;
    margin-bottom: 28px;
}

/* ── Email input ── */
.login-card-body .login-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3d4652;
    margin-bottom: 6px;
    display: block;
}

.login-card-body .login-input-wrapper {
    border: 1px solid #d2d8e0;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.login-card-body .login-input-wrapper:focus-within {
    border-color: #0e42d4;
    box-shadow: 0 0 0 3px rgba(14,66,212,0.12);
}

.login-card-body .form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #040915;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-card-body .form-control:not(.login-input-wrapped) {
    border: 1px solid #d2d8e0;
    border-radius: 8px;
}

.login-card-body .form-control:not(.login-input-wrapped):focus {
    border-color: #0e42d4;
    box-shadow: 0 0 0 3px rgba(14,66,212,0.12);
}

.login-card-body .form-control::placeholder {
    color: #a0a8b4;
    font-weight: 400;
}

/* Suppress browser autofill yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 9999px #ffffff inset !important;
    -webkit-text-fill-color: #040915 !important;
    caret-color: #040915;
}

/* ── Forgot password ── */
.forgot {
    display: block;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
    color: #0e42d4;
    text-decoration: none;
    margin-top: 6px;
    margin-bottom: 16px;
}

.forgot:hover {
    text-decoration: underline;
    color: #0e42d4;
}

/* ── Primary button (Log in) ── */
.login-card-body .btn-success {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(180deg, #1650e0 0%, #0e42d4 60%, #0c3bbf 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 2px 4px rgba(14,66,212,0.25),
        0 6px 16px rgba(14,66,212,0.20);
    transition: all 0.15s ease;
}

.login-card-body .btn-success:hover {
    background: linear-gradient(180deg, #1a55e8 0%, #1047d8 60%, #0e3fc8 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.14) inset,
        0 4px 8px rgba(14,66,212,0.30),
        0 8px 20px rgba(14,66,212,0.22);
    transform: translateY(-1px);
    border-color: transparent;
}

.login-card-body .btn-success:active {
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(14,66,212,0.20);
}

/* ── Or divider ── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

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

.login-divider span {
    font-size: 12px;
    color: #8a9099;
    font-weight: 500;
}

/* ── Passkey button ── */
.login-card-body .btn-outline-primary,
.login-card-body #btnPasskey {
    width: 100%;
    height: 44px;
    border: 1px solid #b8c2cc;
    border-radius: 8px;
    background: #ffffff;
    color: #040915;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.login-card-body .btn-outline-primary i,
.login-card-body #btnPasskey i {
    width: 20px;
    height: 20px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-card-body .btn-outline-primary:hover,
.login-card-body #btnPasskey:hover {
    background: #f5f7fa;
    border-color: #b0bccb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    color: #040915;
}

/* ── Meta section (support + terms) ── */
.meta {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
}

.meta .support {
    font-size: 12px;
    color: #5c6470;
    margin-bottom: 0;
}

.meta .support a {
    color: #0e42d4;
    text-decoration: none;
    font-weight: 500;
}

.meta .support a:hover {
    text-decoration: underline;
}

.meta .terms {
    font-size: 11px;
    color: #8a9099;
    line-height: 1.6;
    margin-top: 8px;
}

.meta .terms a {
    color: #5c6470;
    text-decoration: underline;
    font-weight: 400;
}

.meta .terms a:hover {
    color: #0e42d4;
}

/* ── Links ── */
.login-link {
    display: inline-block;
    padding: 0.25rem 0;
    color: #0e42d4;
    text-decoration: none;
    font-size: 13px;
}

.login-link:hover {
    text-decoration: underline;
}

/* ── Footer ── */
.footer {
    font-size: 12px;
    color: #a0a8b4;
    text-align: center;
    margin-top: 24px;
}

.footer a {
    color: #a0a8b4;
    text-decoration: none;
}

.footer a:hover {
    color: #0e42d4;
}

/* ── Responsive: collapse to single column on small screens ── */
@media (max-width: 700px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .card-brand {
        min-height: 180px;
        min-width: unset;
    }

    .brand-connect {
        bottom: 24px;
        left: 24px;
    }

    .login-card-body {
        padding: 28px 24px;
    }
}
