body.public-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: #0f172a;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.2), transparent 32%),
        linear-gradient(135deg, #082032 0%, #0f3b63 46%, #0d7b7f 100%);
    position: relative;
    overflow-x: hidden;
}

body.public-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
    pointer-events: none;
}

.public-auth-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 460px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(2, 6, 23, 0.35);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.public-auth-brand {
    position: relative;
    padding: 44px 42px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 26%),
        linear-gradient(145deg, rgba(7, 35, 61, 0.96), rgba(6, 95, 108, 0.96));
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.public-auth-brand::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 25%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
    pointer-events: none;
}

.public-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.public-auth-brand-main {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.public-auth-brand h1 {
    margin: 22px 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.public-auth-brand p {
    margin: 0;
    max-width: 560px;
    color: rgba(248, 250, 252, 0.84);
    font-size: 17px;
    line-height: 1.75;
}

.public-auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.public-auth-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.public-auth-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.public-auth-stat {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    min-height: 132px;
}

.public-auth-stat strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #f8fafc;
}

.public-auth-stat span {
    display: block;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.84);
}

.public-auth-footer-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
    color: rgba(226, 232, 240, 0.84);
}

.public-auth-panel {
    padding: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    display: flex;
    align-items: center;
}

.public-auth-card {
    width: 100%;
    padding: 8px;
}

.public-auth-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 10px;
}

.public-auth-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.public-auth-description {
    margin: 12px 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.72;
}

.public-auth-banner {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.public-auth-banner--info {
    background: #eef9ff;
    border-color: #d7edf8;
    color: #0f4c81;
}

.public-auth-banner--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.public-auth-banner--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b91c1c;
}

.public-auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.public-auth-field {
    display: grid;
    gap: 8px;
}

.public-auth-field label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.public-auth-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid #d8e1ea;
    background: #f8fafc;
    font-size: 15px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.public-auth-input:focus {
    outline: none;
    border-color: #0891b2;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.public-auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.public-auth-link {
    color: #0f4c81;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.public-auth-link:hover {
    color: #0b7285;
}

.public-auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4c81, #0b8793);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(15, 76, 129, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.public-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(15, 76, 129, 0.28);
}

.public-auth-btn:disabled,
.public-auth-btn.is-busy {
    cursor: wait;
    opacity: 0.9;
}

.public-auth-btn.is-busy .public-auth-btn-text {
    opacity: 0.76;
}

.public-auth-btn.is-busy::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    animation: public-auth-spin 0.7s linear infinite;
}

.public-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #d8e1ea;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.public-auth-secondary:hover {
    border-color: #94a3b8;
}

.public-auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.public-auth-card-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.public-auth-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.public-auth-language button {
    border: none;
    background: transparent;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.public-auth-language button.is-active {
    color: #0f4c81;
}

.public-auth-caption {
    font-size: 12px;
    color: #64748b;
}

.public-auth-info-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.public-auth-info-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.public-auth-info-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.public-auth-info-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.public-auth-empty {
    padding: 22px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

@keyframes public-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .public-auth-shell {
        grid-template-columns: 1fr;
    }

    .public-auth-brand {
        min-height: 420px;
    }

    .public-auth-panel {
        padding: 26px;
    }
}

@media (max-width: 640px) {
    .public-auth-shell {
        width: min(100%, calc(100% - 16px));
        margin: 8px auto;
        min-height: calc(100vh - 16px);
        border-radius: 24px;
    }

    .public-auth-brand,
    .public-auth-panel {
        padding: 24px 20px;
    }

    .public-auth-stats {
        grid-template-columns: 1fr;
    }

    .public-auth-footer-note,
    .public-auth-card-footer,
    .public-auth-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-auth-title {
        font-size: 28px;
    }
}
