.field-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-sizing: border-box;
    margin-bottom: 22px;
}

html {
    height: 100%;
}

/* VARIABLES */
:root {
    --lcc-blue: #003366;
    --lcc-blue-soft: #0d4d86;
    --lcc-blue-mid: #1d66a8;
    --text-main: #1a2a3a;
    --text-soft: #5a7a9a;

    --radius-card: 24px;
    --radius-btn: 14px;
    --radius-input: 14px;
}

/* BODY */
body.login-page {
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 120px;

    background:
        radial-gradient(circle at top left, rgba(0, 51, 102, 0.12), transparent 18%),
        radial-gradient(circle at bottom right, rgba(30, 90, 150, 0.14), transparent 22%),
        linear-gradient(rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #dbe6f0 0%, #e5eef6 48%, #edf3f8 100%);
    background-size:
        auto,
        auto,
        42px 42px,
        42px 42px,
        auto;
    color: #1f2937;
    background-attachment: fixed;
}

/* LAYOUT */
.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-wrap {
    width: 100%;
    max-width: 472px;
}

/* CARD */
.auth-card {
    width: 100%;
    background: linear-gradient(165deg, rgba(255,255,255,0.99) 0%, rgba(246,250,255,0.97) 60%, rgba(242,247,253,0.96) 100%);
    border: 1px solid rgba(214, 222, 235, 0.96);
    border-radius: var(--radius-card);
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.92);
    overflow: hidden;
    animation: cardIn 0.48s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-body {
    padding: 32px 34px 34px;
}

/* BRAND */
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.auth-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(237,244,252,0.94));
    border: 1px solid rgba(214, 222, 235, 0.96);
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.96);
    transition: transform 0.3s ease;
}

.auth-brand img:hover {
    transform: scale(1.08);
}

.auth-brand h1 {
    font-family: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 2px 0 0;
}

.auth-brand p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f4a86;
    background: linear-gradient(145deg, rgba(13, 77, 134, 0.11), rgba(212, 228, 246, 0.44));
    border: 1px solid rgba(164, 191, 224, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

/* FORM */
.field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lcc-blue);
}

.field-wrap {
    position: relative;
}

.field-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lcc-blue-soft);
    font-size: 0.9rem;
}

.field-wrap input {
    width: 100%;
    padding: 13px 48px 13px 40px;
    border-radius: 16px;
    border: 1.5px solid rgba(0,51,102,0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    color: var(--text-main);
    font-size: 0.97rem;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.88);
    transition: 0.2s;
}

.field-wrap input:focus {
    border-color: var(--lcc-blue-soft);
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(13,77,134,0.10),
        0 12px 24px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

/* PASSWORD TOGGLE */
.toggle-pw {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: 0.2s;
}

.toggle-pw:hover {
    color: var(--lcc-blue);
    background: rgba(13,77,134,0.08);
}

/* ROW */
.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 24px;
    font-size: 0.88rem;
    gap: 12px;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--lcc-blue) 0%, var(--lcc-blue-soft) 60%, var(--lcc-blue-mid) 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,51,102,0.22);
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0,51,102,0.28);
}

.btn-primary:disabled {
    cursor: wait;
}

.btn-primary.is-loading {
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 30px rgba(0,51,102,0.24);
}

.btn-primary.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    display: inline-block;
    vertical-align: -3px;
    animation: authButtonSpin 0.7s linear infinite;
}

@keyframes authButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 0.8rem;
    color: rgba(0,51,102,0.3);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,51,102,0.1);
}

/* SOCIAL */
.social-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    height: 48px;
    border-radius: var(--radius-btn);
    border: 1.5px solid rgba(0,51,102,0.10);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-social:hover {
    box-shadow: 0 8px 18px rgba(0,51,102,0.08);
    transform: translateY(-1px);
}

/* ALERT */
.auth-alert {
    display: none;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(220,38,38,0.06);
    border: 1px solid rgba(220,38,38,0.16);
    color: #b91c1c;
    margin-bottom: 16px;
}

.auth-alert.show {
    display: flex;
}

.auth-alert-success {
    display: none;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #15803d;
    margin-bottom: 16px;
}

.auth-alert-success.show {
    display: flex;
}

/* FOOTER FIX */
.site-footer {
    margin-top: auto;
}

/* MOBILE */
@media (max-width: 767px) {
    .auth-body {
        padding: 22px 20px 20px;
    }

    .btn-primary {
        min-height: 52px;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-brand img {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }
}


.auth-intro {
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 26px;
    font-size: 0.95rem;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--lcc-blue-soft);
    cursor: pointer;
}

.forgot-link {
    font-weight: 700;
    color: var(--lcc-blue-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.inline-link {
    font-weight: 800;
    color: var(--lcc-blue-soft);
    text-decoration: none;
}

.inline-link:hover {
    color: var(--lcc-blue);
}

.forgot-link:hover {
    color: var(--lcc-blue);
}

.toggle-pw {
    right: 25px; 
    font-size: 0.85rem;
}

.toggle-pw:active {
    transform: translateY(-50%) scale(0.92);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-social .fa-google {
    color: #ea4335;
}

.btn-social .fa-facebook-f {
    color: #1877f2;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,51,102,0.07);
}

.auth-footer a {
    font-weight: 800;
    color: var(--lcc-blue-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.reset-link-preview {
    margin-top: 20px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 77, 134, 0.08) 0%, rgba(13, 77, 134, 0.04) 100%);
    border: 1px solid rgba(13, 77, 134, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.terms-list {
    display: grid;
    gap: 14px;
}

.terms-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(244,248,255,0.94));
    border: 1px solid rgba(216, 225, 238, 0.92);
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.terms-item h2 {
    font-family: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 8px;
}

.terms-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.94rem;
}

.reset-link-label {
    margin: 0 0 10px;
    color: var(--lcc-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.reset-link-preview a {
    color: var(--lcc-blue-soft);
    font-weight: 700;
    text-decoration: none;
}

.reset-link-text {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 36ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.reset-link-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reset-link-actions a,
.btn-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    flex: 1 1 0;
}

.reset-link-actions a {
    background: linear-gradient(135deg, var(--lcc-blue) 0%, var(--lcc-blue-soft) 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.16);
}

.btn-copy-link {
    border: 1px solid rgba(0, 51, 102, 0.12);
    background: #ffffff;
    color: var(--lcc-blue-soft);
    cursor: pointer;
    transition: 0.2s;
}

.btn-copy-link:hover {
    background: rgba(13, 77, 134, 0.05);
}

@media (max-width: 767px) {
    .reset-link-preview {
        padding: 16px;
        border-radius: 16px;
    }

    .reset-link-text {
        max-width: none;
        font-size: 0.92rem;
    }

    .reset-link-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .reset-link-actions a,
    .btn-copy-link {
        width: 100%;
    }
}
