:root {
    --fc-blue: #0050b0;
    --fc-blue-2: #1976d2;
    --fc-blue-soft: rgba(0, 80, 176, 0.13);

    --fc-green: #70b300;
    --fc-green-2: #4f9c2f;
    --fc-green-soft: rgba(112, 179, 0, 0.16);

    --fc-text: #111827;
    --fc-muted: #64748b;
    --fc-line: rgba(226, 232, 240, 0.78);
    --fc-white: #ffffff;

    --fc-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
    --fc-shadow-soft: 0 16px 38px rgba(0, 80, 176, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, Arial, sans-serif;
    color: var(--fc-text);
    background: #07111f;
}

body.auth-page a {
    text-decoration: none;
}

.auth-page-hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: #07111f;
    overflow: visible;
}

.auth-page-hero::before {
    content: "";
    position: fixed;
    inset: -40px;
    z-index: 0;
    background-image: var(--auth-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.72) blur(4px);
    transform: scale(1.06);
    pointer-events: none;
}

.auth-page-hero::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(2, 8, 23, 0.34), rgba(2, 8, 23, 0.62)),
        radial-gradient(circle at 22% 18%, rgba(0, 80, 176, 0.28), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(112, 179, 0, 0.22), transparent 36%);
    pointer-events: none;
}

.auth-main {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 6vh, 70px) 0;
}

.auth-login-card {
    position: relative;
    width: min(430px, 100%);
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--fc-shadow);
}

.auth-card-media {
    position: relative;
    height: 164px;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(2, 8, 23, 0.18), rgba(2, 8, 23, 0.18)),
        var(--auth-card-bg);
    background-size: cover;
    background-position: center;
}

.auth-card-media::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -78px;
    width: 124%;
    height: 132px;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, 0.98);
}

.auth-card-media-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(112, 179, 0, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(0, 80, 176, 0.14), transparent 58%);
}

.auth-card-logo-bubble {
    position: absolute;
    left: 50%;
    top: 151px;
    z-index: 3;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #ffffff;
    border: 5px solid #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.auth-card-logo-bubble img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

.auth-card-body {
    padding: 48px 34px 34px;
}

.auth-main-logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 18px;
}

.auth-main-logo img {
    width: 190px;
    max-width: 78%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 80, 176, 0.14));
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--fc-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-align: center;
    text-transform: uppercase;
}

.auth-headline {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: center;
}

.auth-subtext {
    margin: 10px auto 24px;
    max-width: 330px;
    color: var(--fc-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.auth-form-group {
    margin-bottom: 14px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.auth-form-group .input,
.auth-form-group input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(203, 213, 225, 0.98);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
    color: #0f172a;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
}

.auth-form-group .input::placeholder,
.auth-form-group input::placeholder {
    color: #94a3b8;
}

.auth-form-group .input:focus,
.auth-form-group input:focus {
    border-color: rgba(0, 80, 176, 0.62);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 80, 176, 0.12);
}

.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 22px;
}

.auth-meta-row a,
.auth-footer-note a {
    color: var(--fc-blue);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.auth-meta-row a:hover,
.auth-footer-note a:hover {
    color: var(--fc-green-2);
}

.auth-meta-row span {
    color: var(--fc-muted);
    font-size: 13px;
    font-weight: 750;
}

.auth-submit,
.btn.btn-primary.auth-submit {
    width: 100%;
    min-height: 52px;
    border: none !important;
    border-radius: 17px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--fc-blue), var(--fc-blue-2) 56%, var(--fc-green)) !important;
    box-shadow: 0 16px 32px rgba(0, 80, 176, 0.24) !important;
    cursor: pointer;
    transition: 0.18s ease;
}

.auth-submit:hover,
.btn.btn-primary.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(0, 80, 176, 0.30) !important;
}

.auth-submit:active,
.btn.btn-primary.auth-submit:active {
    transform: translateY(0);
}

.auth-footer-note {
    margin-top: 22px;
    color: var(--fc-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.auth-footer-note p {
    margin: 7px 0 0;
}

.auth-info-box {
    margin: 6px 0 18px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #334155;
    background:
        linear-gradient(135deg, rgba(0, 80, 176, 0.08), rgba(112, 179, 0, 0.10));
    border: 1px solid rgba(0, 80, 176, 0.12);
    font-size: 13px;
    line-height: 1.5;
}

.auth-info-box strong {
    color: var(--fc-blue);
    font-weight: 900;
}

.auth-card-links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-card-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #334155;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: 0.18s ease;
}

.auth-card-links a:hover {
    color: var(--fc-blue);
    background: var(--fc-blue-soft);
    border-color: rgba(0, 80, 176, 0.18);
}

.auth-card-body .alert,
.auth-card-body .flash,
.auth-card-body .notice {
    margin: 0 0 16px;
    border-radius: 16px;
    font-size: 14px;
}

.auth-card-body .alert-success,
.auth-card-body .success {
    color: #2f6b13;
    background: rgba(112, 179, 0, 0.13);
    border: 1px solid rgba(112, 179, 0, 0.22);
}

.auth-card-body .alert-error,
.auth-card-body .error {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.auth-register-page .auth-login-card {
    width: min(560px, 100%);
}

.auth-register-page .auth-card-body {
    padding-left: 34px;
    padding-right: 34px;
}

.auth-register-page .auth-subtext {
    max-width: 420px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-register-form .auth-form-group {
    margin-bottom: 14px;
}

.auth-page .fc-public-footer {
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 80, 176, 0.07), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(112, 179, 0, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.96);
}

.auth-page .fc-public-footer .fc-public-footer-inner {
    padding-top: 34px;
    padding-bottom: 34px;
}

@media (max-width: 820px) {
    .auth-page-hero {
        min-height: auto;
        padding: 18px;
    }

    .auth-main {
        padding: 28px 0 20px;
    }

    .auth-login-card {
        width: min(430px, 100%);
    }

    .auth-register-page .auth-login-card {
        width: min(560px, 100%);
    }
}

@media (max-width: 560px) {
    .auth-page-hero {
        padding: 12px;
    }

    .auth-main {
        padding: 18px 0 18px;
    }

    .auth-login-card {
        width: 100%;
        border-radius: 24px;
    }

    .auth-card-media {
        height: 128px;
    }

    .auth-card-media::after {
        bottom: -74px;
        height: 120px;
    }

    .auth-card-logo-bubble {
        top: 119px;
        width: 62px;
        height: 62px;
        border-width: 4px;
    }

    .auth-card-logo-bubble img {
        width: 49px;
        height: 49px;
    }

    .auth-card-body {
        padding: 42px 20px 24px;
    }

    .auth-main-logo img {
        width: 160px;
    }

    .auth-subtext {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .auth-form-group label {
        font-size: 12.5px;
    }

    .auth-form-group .input,
    .auth-form-group input {
        min-height: 48px;
        border-radius: 15px;
        font-size: 14px;
    }

    .auth-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 18px;
        text-align: center;
    }

    .auth-info-box {
        font-size: 12.5px;
        padding: 12px;
    }

    .auth-card-links {
        gap: 6px;
    }

    .auth-card-links a {
        min-height: 28px;
        padding: 0 8px;
        font-size: 11.5px;
    }

    .auth-register-page .auth-login-card {
        width: 100%;
    }

    .auth-register-page .auth-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-page .fc-public-footer .fc-public-footer-inner {
        padding: 30px 20px 34px;
    }
}

@media (max-width: 390px) {
    .auth-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-main-logo img {
        width: 150px;
    }

    .auth-headline {
        font-size: 25px;
    }

    .auth-card-links a {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .auth-page-hero {
        padding: 10px;
    }

    .auth-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-footer-note {
        font-size: 12.5px;
    }
}