@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --auth-primary: var(--sys-primary);
    --auth-primary-dark: var(--sys-primary-strong);
    --auth-secondary: var(--sys-secondary);
    --auth-accent: var(--sys-accent);
    --auth-primary-soft: rgba(var(--sys-primary-rgb), 0.06);
    --auth-primary-soft-alt: rgba(var(--sys-accent-rgb), 0.12);
    --auth-text: #12344d;
    --auth-muted: #5c7489;
    --auth-border: rgba(var(--sys-primary-rgb), 0.16);
    --auth-surface: rgba(255, 255, 255, 0.92);
    --auth-shadow: 0 24px 60px rgba(var(--sys-primary-strong-rgb), 0.14);
}

.auth-layout-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--sys-accent-rgb), 0.24), transparent 22%),
        radial-gradient(circle at 88% 24%, rgba(var(--sys-primary-rgb), 0.16), transparent 18%),
        linear-gradient(135deg, rgba(var(--sys-accent-rgb), 0.08) 0%, rgba(var(--sys-primary-rgb), 0.12) 45%, #ffffff 100%);
    color: var(--auth-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.auth-layout-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

.auth-pattern {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10px 10px, rgba(var(--sys-primary-rgb), 0.08) 1.2px, transparent 0),
        radial-gradient(circle at 30px 28px, rgba(var(--sys-accent-rgb), 0.08) 1px, transparent 0);
    background-size: 42px 42px, 58px 58px;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.auth-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(var(--sys-accent-rgb), 0.2) 55%, rgba(var(--sys-accent-rgb), 0.08) 100%);
    filter: blur(1px);
    opacity: 0.55;
    animation: authFloatBubble 14s ease-in-out infinite;
}

.auth-bubble-one {
    width: 300px;
    height: 300px;
    left: -80px;
    top: 12%;
}

.auth-bubble-two {
    width: 260px;
    height: 260px;
    right: 14%;
    top: 8%;
    animation-delay: 2.5s;
}

.auth-bubble-three {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -80px;
    animation-delay: 1.5s;
}

.auth-page {
    position: relative;
    z-index: 1;
    padding: clamp(1.25rem, 2.6vw, 2.5rem) 0;
}

.auth-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-error-shell {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--sys-primary-rgb), 0.12);
    box-shadow: 0 24px 56px rgba(var(--sys-primary-strong-rgb), 0.14);
}

.auth-error-panel {
    position: relative;
    padding: clamp(1.8rem, 4vw, 3rem);
}

.auth-error-panel-soft {
    background: linear-gradient(180deg, var(--auth-primary-soft) 0%, var(--auth-primary-soft-alt) 100%);
}

.auth-error-panel-main {
    background: rgba(255, 255, 255, 0.95);
}

.auth-error-code {
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: clamp(3.6rem, 9vw, 5.8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: rgba(var(--sys-primary-rgb), 0.22);
    margin-bottom: 1rem;
}

.auth-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--sys-primary-rgb), 0.1);
    border: 1px solid rgba(var(--sys-primary-rgb), 0.16);
    color: var(--auth-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.auth-error-title,
.auth-error-heading {
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    letter-spacing: -0.03em;
    color: var(--auth-text);
}

.auth-error-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.8rem, 3.2vw, 2.55rem);
    line-height: 1.12;
    font-weight: 800;
}

.auth-error-summary,
.auth-error-copy {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.auth-error-tips {
    margin-top: 1.4rem;
}

.auth-error-tips h2 {
    margin: 0 0 0.8rem;
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--auth-primary-dark);
}

.auth-error-tips ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--auth-muted);
}

.auth-error-tips li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.auth-error-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(var(--sys-primary-rgb), 0.1);
    color: var(--auth-primary);
    font-size: 1.45rem;
}

.auth-error-heading {
    margin: 0 0 0.7rem;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
}

.auth-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
    margin-top: 1.6rem;
}

.auth-error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 168px;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.auth-error-btn.btn-brand {
    max-width: none;
}

.auth-error-btn-outline {
    background: rgba(var(--sys-primary-rgb), 0.08);
    border-color: rgba(var(--sys-primary-rgb), 0.18);
    color: var(--auth-primary-dark);
}

.auth-error-btn-outline:hover,
.auth-error-btn-outline:focus {
    background: rgba(var(--sys-primary-rgb), 0.14);
    color: var(--auth-primary);
    border-color: rgba(var(--sys-primary-rgb), 0.3);
    transform: translateY(-1px);
}

.auth-login-frame {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.auth-login-shell {
    width: min(1140px, 100%);
    min-height: 540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(var(--sys-primary-rgb), 0.12);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 54px rgba(var(--sys-primary-strong-rgb), 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.auth-login-shell:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--sys-primary-rgb), 0.2);
    box-shadow: 0 30px 64px rgba(var(--sys-primary-strong-rgb), 0.18);
}

.auth-login-brand-panel {
    position: relative;
    padding: clamp(2rem, 4vw, 3.2rem);
    background: linear-gradient(180deg, var(--auth-primary-soft) 0%, var(--auth-primary-soft-alt) 100%);
    color: var(--auth-primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    transition: background 0.3s ease;
}

.auth-login-shell:hover .auth-login-brand-panel {
    background: linear-gradient(180deg, rgba(var(--sys-primary-rgb), 0.03) 0%, var(--auth-primary-soft-alt) 100%);
}

.auth-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
    text-decoration: none;
    max-width: 320px;
}

.auth-login-brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
    padding: 0.2rem;
    border: 1px solid rgba(var(--sys-primary-rgb), 0.2);
}

.auth-login-brand span {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
}

.auth-login-brand strong {
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-login-brand small {
    font-size: 0.72rem;
    color: var(--auth-text);
}

.auth-login-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: rgba(var(--sys-primary-rgb), 0.12);
    border: 1px solid rgba(var(--sys-primary-rgb), 0.24);
    color: var(--auth-primary-dark);
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-login-copy h1 {
    margin: 0 0 0.65rem;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: clamp(2.35rem, 4vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--auth-primary);
    font-weight: 800;
}

.auth-login-copy p {
    margin: 0;
    max-width: 360px;
    color: var(--auth-muted);
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 1rem;
    line-height: 1.72;
    letter-spacing: 0.005em;
}

.auth-login-guide {
    position: relative;
    z-index: 1;
    max-width: 390px;
}

.auth-login-guide h3 {
    margin: 0 0 0.8rem;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--auth-primary-dark);
}

.auth-login-guide ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--auth-muted);
}

.auth-login-guide li {
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 0.95rem;
    line-height: 1.72;
    letter-spacing: 0.005em;
    margin-bottom: 0.3rem;
}

.auth-login-watermark {
    position: absolute;
    right: 60px;
    bottom: 28px;
    font-size: 9.5rem;
    line-height: 1;
    color: rgba(var(--sys-primary-rgb), 0.08);
    pointer-events: none;
}

.auth-login-form-panel {
    padding: clamp(2rem, 4vw, 3.2rem);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: inset 1px 0 0 rgba(var(--sys-primary-rgb), 0.08);
}

.auth-login-form-card {
    width: min(420px, 100%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
}

.auth-mobile-logo {
    display: none;
}

.auth-login-shell:hover .auth-login-form-card {
    transform: none;
}

.auth-login-title-row {
    margin-bottom: 0.65rem;
}

.auth-login-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--auth-primary);
    letter-spacing: -0.03em;
}

.auth-login-subtitle {
    margin: 0 0 1.35rem;
    color: var(--auth-muted);
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 0.98rem;
    line-height: 1.68;
    letter-spacing: 0.005em;
}

.auth-login-form {
    gap: 1.05rem;
}

.auth-login-input {
    min-height: 52px;
    border-radius: 8px;
    border-color: rgba(var(--sys-primary-rgb), 0.18);
    background: var(--auth-primary-soft);
    box-shadow: none;
}

.auth-login-input:focus-within {
    transform: none;
    border-color: rgba(var(--sys-primary-rgb), 0.42);
    box-shadow: 0 0 0 4px rgba(var(--sys-primary-rgb), 0.08);
}

.auth-login-input input {
    padding-top: 0.86rem;
    padding-bottom: 0.86rem;
}

.auth-login-input select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    padding: 0.86rem 1rem 0.86rem 2.7rem;
    appearance: none;
}

.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-text);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-primary-soft) inset;
    box-shadow: 0 0 0 1000px var(--auth-primary-soft) inset;
    border-radius: inherit;
    transition: background-color 9999s ease-out 0s;
}

.auth-login-input:-webkit-autofill,
.auth-login-input:has(input:-webkit-autofill) {
    border-color: rgba(var(--sys-primary-rgb), 0.26);
}

.auth-login-meta {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.auth-login-meta .auth-checkbox {
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--auth-muted);
    white-space: nowrap;
}

.auth-login-meta .auth-checkbox label,
.auth-login-meta .auth-link {
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--auth-muted);
    white-space: nowrap;
    letter-spacing: 0.005em;
}

.auth-login-meta .auth-checkbox span {
    font-weight: 400;
}

.auth-login-meta .auth-link:hover,
.auth-login-meta .auth-link:focus {
    color: var(--auth-primary-dark);
}

.auth-login-button {
    border-radius: 10px;
    padding: 0.95rem 1rem;
    background: var(--auth-primary);
    box-shadow: none;
    font-weight: 400;
}

.auth-login-button:hover,
.auth-login-button:focus {
    background: var(--auth-primary-dark);
    box-shadow: none;
    transform: none;
}

.auth-forgot-button,
.auth-forgot-button span {
    font-weight: 400 !important;
}

.auth-login-back-wrap {
    display: flex;
    justify-content: center;
    padding-top: 0.35rem;
}

.auth-login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-muted);
    text-decoration: none;
    font-weight: 400;
    font-family: var(--font-body, "Open Sans", "Segoe UI", sans-serif);
    padding: 0.32rem 0.5rem;
    border-radius: 999px;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.auth-login-back-link:hover {
    color: var(--auth-primary-dark);
    background: rgba(var(--sys-primary-rgb), 0.08);
    transform: translateY(-1px);
}

.auth-login-back-link:focus {
    color: var(--auth-primary-dark);
    background: rgba(var(--sys-primary-rgb), 0.1);
    outline: none;
}

.auth-register-shell {
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
}

.auth-register-card {
    max-height: min(88vh, 980px);
    overflow-y: auto;
}

.auth-register-form .row {
    margin-right: 0;
    margin-left: 0;
}

.auth-register-form .row > * {
    padding-right: calc(var(--bs-gutter-x, 1.3rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 1.3rem) * 0.5);
}

.auth-radio-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.auth-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--sys-primary-rgb), 0.18);
    background: var(--auth-primary-soft);
    color: var(--auth-text);
    cursor: pointer;
}

.auth-radio-option input {
    margin: 0;
}

.auth-register-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.auth-register-meta .auth-checkbox {
    white-space: normal;
}

@keyframes authFloatBubble {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-16px) scale(1.03);
    }
}

.auth-shell {
    width: min(1140px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1.02fr) minmax(320px, 0.98fr);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(var(--sys-primary-rgb), 0.1);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
}

.auth-brand-panel {
    position: relative;
    padding: clamp(1.8rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.25), transparent 26%),
        radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.2), transparent 18%),
        linear-gradient(155deg, var(--auth-primary-dark) 0%, var(--auth-primary) 48%, var(--auth-accent) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-height: 100%;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-brand-panel::before {
    width: 230px;
    height: 230px;
    right: -70px;
    top: -80px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-brand-panel::after {
    width: 220px;
    height: 220px;
    left: -88px;
    bottom: -110px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-mark,
.auth-brand-mark:hover {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.auth-brand-mark img {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.22);
    padding: 0.3rem;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.auth-brand-copy strong {
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand-copy span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.auth-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-hero {
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    margin: 0;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-hero-copy {
    margin: 0.9rem 0 0;
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.auth-role-row,
.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
}

.auth-role-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-role-chip,
.auth-feature-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.auth-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.auth-feature-list {
    margin-top: auto;
}

.auth-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
}

.auth-steps-title {
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.auth-step-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.auth-step-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.96rem;
    font-weight: 800;
}

.auth-step-card strong {
    display: block;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.auth-step-card span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.auth-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
}

.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1rem;
}

.auth-feature-card strong {
    display: block;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.auth-feature-card span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.auth-form-panel {
    padding: clamp(1.6rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top right, rgba(var(--sys-primary-rgb), 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, rgba(var(--sys-primary-rgb), 0.03) 100%);
}

.auth-form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-primary-dark);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-language-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    background: var(--auth-primary-soft);
    color: var(--auth-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-form-card {
    width: min(520px, 100%);
    max-width: 520px;
    margin-left: 0;
}

.auth-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--auth-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-panel-title {
    margin: 0;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--auth-text);
    font-weight: 800;
}

.auth-panel-copy {
    margin: 0.85rem 0 1.4rem;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.auth-feedback {
    margin-bottom: 1rem;
}

.auth-alert {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-alert + .auth-alert {
    margin-top: 0.75rem;
}

.auth-alert-info {
    background: rgba(var(--sys-primary-rgb), 0.08);
    border-color: rgba(var(--sys-primary-rgb), 0.14);
    color: var(--auth-primary-dark);
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.auth-alert-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.14);
    color: #991b1b;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.05rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-input-group {
    display: grid;
    gap: 0.45rem;
}

.auth-input-group label,
.auth-checkbox label {
    color: var(--auth-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 18px;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 74, 95, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-input-wrap:focus-within {
    border-color: rgba(var(--sys-primary-rgb), 0.42);
    box-shadow: 0 16px 28px rgba(var(--sys-primary-rgb), 0.12);
    transform: translateY(-1px);
}

.auth-input-icon,
.auth-input-prefix {
    color: #6d7d88;
    flex-shrink: 0;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    font-size: 0.98rem;
}

.auth-input-prefix {
    padding-left: 1rem;
    padding-right: 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.auth-input-wrap input,
.auth-input-wrap select,
.auth-input-wrap textarea {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--auth-text);
    padding: 0.95rem 1rem 0.95rem 2.85rem;
    font-size: 0.96rem;
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: #94a3b8;
}

.auth-input-wrap.is-prefixed input {
    padding-left: 0.55rem;
}

.auth-input-wrap.is-readonly {
    background: rgba(var(--sys-primary-rgb), 0.05);
}

.auth-input-wrap.is-invalid {
    border-color: rgba(220, 38, 38, 0.25);
}

.auth-password-toggle {
    border: 0;
    background: transparent;
    color: #6d7d88;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: var(--auth-primary);
}

.auth-field-hint,
.auth-field-error,
.auth-inline-meta {
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-field-hint,
.auth-inline-meta {
    color: var(--auth-muted);
}

.auth-field-error {
    color: #b91c1c;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
}

.auth-link,
.auth-text-link {
    color: var(--auth-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover,
.auth-text-link:hover {
    color: var(--auth-primary);
}

.btn-brand,
.btn-brand-secondary {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 0.98rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: "Manrope", var(--font-heading, "Roboto", sans-serif);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn-brand {
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    box-shadow: 0 16px 28px rgba(var(--sys-primary-strong-rgb), 0.22);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(var(--sys-primary-strong-rgb), 0.24);
}

.btn-brand.auth-login-button,
.btn-brand.auth-login-button:hover,
.btn-brand.auth-login-button:focus,
.btn-brand.auth-login-button:active {
    background: var(--auth-primary) !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-brand.auth-login-button:hover,
.btn-brand.auth-login-button:focus,
.btn-brand.auth-login-button:active {
    background: var(--auth-primary-dark) !important;
}

.btn-brand[disabled] {
    opacity: 0.82;
    cursor: not-allowed;
    transform: none;
}

.btn-brand-secondary {
    color: var(--auth-primary-dark);
    background: rgba(var(--sys-primary-rgb), 0.08);
}

.auth-form-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-top: 0.2rem;
}

.auth-form-links p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-code-grid {
    display: grid;
    gap: 0.9rem;
}

.auth-code-input {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 1.18rem !important;
    font-weight: 700;
    padding-left: 1rem !important;
}

.auth-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-primary-dark);
    font-weight: 700;
    background: rgba(var(--sys-primary-rgb), 0.08);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

.auth-rules {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.auth-rules li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-muted);
    font-size: 0.88rem;
}

.auth-rules li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(var(--sys-primary-rgb), 0.22);
    background: transparent;
    transition: all 0.2s ease;
}

.auth-rules li.is-valid {
    color: #166534;
}

.auth-rules li.is-valid::before {
    border-color: rgba(34, 197, 94, 0.4);
    background: #22c55e;
}

.auth-inline-stack {
    display: grid;
    gap: 0.7rem;
}

.auth-card {
    max-width: 920px;
    width: 100%;
    padding: 2rem 2.5rem;
    margin: 2px auto;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

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

    .auth-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-login-shell:not(.auth-register-shell) {
        width: min(600px, 100%);
    }

    .auth-login-brand-panel {
        display: none;
    }

    .auth-login-form-panel {
        padding: 1.5rem;
        justify-content: center;
        box-shadow: none;
    }

    .auth-login-form-card {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .auth-mobile-logo,
    .auth-mobile-logo:hover,
    .auth-mobile-logo:focus {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 104px;
        height: 104px;
        margin: 0 auto 1.25rem;
        border: 1px solid rgba(var(--sys-primary-rgb), 0.2);
        border-radius: 50%;
        background: linear-gradient(145deg, #ffffff 0%, var(--auth-primary-soft-alt) 100%);
        box-shadow: 0 14px 30px rgba(var(--sys-primary-strong-rgb), 0.15);
        color: inherit;
        overflow: hidden;
        text-decoration: none;
    }

    .auth-mobile-logo img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 50%;
        background: #ffffff;
        object-fit: contain;
        transform: scale(1.22);
        transform-origin: center;
    }

    .auth-login-watermark {
        right: 30px;
        bottom: 16px;
        font-size: 7rem;
    }

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

    .auth-brand-panel {
        min-height: auto;
    }

    .auth-form-card {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .auth-error-shell {
        width: calc(100% - 12px);
        border-radius: 22px;
    }

    .auth-error-panel {
        padding: 1.2rem;
    }

    .auth-error-code {
        font-size: 3.4rem;
    }

    .auth-error-title {
        font-size: 1.5rem;
    }

    .auth-error-summary,
    .auth-error-copy,
    .auth-error-tips li {
        font-size: 0.9rem;
        line-height: 1.62;
    }

    .auth-error-actions {
        gap: 0.6rem;
    }

    .auth-error-btn {
        min-width: 140px;
        padding: 0.82rem 0.95rem;
        font-size: 0.88rem;
    }

    .auth-login-page {
        align-items: stretch;
    }

    .auth-login-frame {
        width: calc(100% - 12px);
        padding: 0;
        border-radius: 0;
    }

    .auth-login-shell {
        border-radius: 18px;
    }

    .auth-mobile-logo,
    .auth-mobile-logo:hover,
    .auth-mobile-logo:focus {
        width: 92px;
        height: 92px;
        margin-bottom: 1rem;
    }

    .auth-login-copy h1 {
        font-size: 1.8rem;
        margin-bottom: 0.35rem;
    }

    .auth-login-copy p,
    .auth-login-guide li,
    .auth-login-subtitle {
        font-size: 0.88rem;
        line-height: 1.62;
    }

    .auth-login-title {
        font-size: 1.85rem;
    }

    .auth-login-brand-panel {
        gap: 0.8rem;
        padding: 1.1rem;
    }

    .auth-login-brand {
        gap: 0.65rem;
        max-width: 100%;
    }

    .auth-login-brand strong {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .auth-login-brand small {
        font-size: 0.68rem;
        line-height: 1.35;
        color: var(--auth-text);
    }

    .auth-login-pill {
        padding: 0.42rem 0.72rem;
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .auth-login-copy p {
        max-width: none;
    }

    .auth-login-guide {
        max-width: none;
    }

    .auth-login-guide h3 {
        font-size: 0.92rem;
        margin-bottom: 0.45rem;
    }

    .auth-login-guide ul {
        padding-left: 0.95rem;
    }

    .auth-login-guide li {
        margin-bottom: 0.15rem;
    }

    .auth-login-meta {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.55rem;
    }

    .auth-login-meta .auth-checkbox,
    .auth-login-meta .auth-checkbox label,
    .auth-login-meta .auth-link {
        font-size: 0.8rem;
    }

    .auth-login-watermark {
        right: 12px;
        bottom: 6px;
        font-size: min(42vw, 10.5rem);
        opacity: 0.95;
    }

    .auth-bubble-one {
        width: 210px;
        height: 210px;
        left: -90px;
        top: 14%;
    }

    .auth-bubble-two {
        width: 180px;
        height: 180px;
        right: -40px;
        top: 8%;
    }

    .auth-bubble-three {
        width: 220px;
        height: 220px;
        right: -90px;
        bottom: -60px;
    }

    .auth-page {
        padding: 0.8rem 0 1.2rem;
    }

    .auth-shell {
        width: calc(100% - 12px);
        border-radius: 22px;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 1.15rem;
    }

    .auth-role-row {
        grid-template-columns: 1fr;
    }

    .auth-hero-title {
        font-size: 1.7rem;
    }

    .auth-hero-copy,
    .auth-panel-copy {
        font-size: 0.92rem;
    }

    .auth-input-wrap input {
        font-size: 0.94rem;
        padding-top: 0.88rem;
        padding-bottom: 0.88rem;
    }

    .auth-form-meta,
    .auth-form-links,
    .auth-form-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-code-input {
        letter-spacing: 0.28em;
        font-size: 1.05rem !important;
    }

    .auth-card {
        max-width: 100%;
        padding: 1.5rem;
    }
}

.rounded-alert {
    border-radius: 16px !important;
    padding: 1.6rem;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.swal2-title-custom {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.swal2-confirm-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
}
