.auth-page-v2 {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 94, 98, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(61, 92, 255, 0.14), transparent 24%),
        linear-gradient(145deg, #06070b 0%, #0d1017 45%, #131826 100%);
    color: #f8fafc;
}

.auth-page-shell {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding: 24px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(8, 12, 20, 0.72);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.auth-page-decoration {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
    opacity: 0.88;
}

.auth-page-decoration--left {
    top: -84px;
    left: -42px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 91, 97, 0.32), rgba(255, 91, 97, 0));
}

.auth-page-decoration--right {
    right: 12%;
    bottom: -110px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.26), rgba(99, 102, 241, 0));
}

.auth-page-header,
.auth-page-grid,
.auth-logo-wrap,
.auth-language-toggle,
.auth-theme-toggle,
.auth-hero-surface,
.auth-form-panel,
.auth-metric-card,
.auth-hero-pill,
.auth-form-footer__item,
.auth-page-v2 .form-control,
.auth-page-v2 .btn-password-toggle,
.auth-page-v2 .btn-auth-login,
.auth-page-v2 .btn-google {
    transition:
        background-color 0.24s ease,
        border-color 0.24s ease,
        color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease;
}

.auth-page-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #f8fafc;
}

.auth-logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #ff5b61 0%, #cf3942 52%, #6b1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 34px rgba(150, 25, 38, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-logo-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.auth-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-logo-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-logo-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.68);
}

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-language-dropdown {
    position: relative;
}

.auth-language-toggle,
.auth-theme-toggle {
    min-height: 48px;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px !important;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-language-toggle .mdi {
    font-size: 1rem;
    opacity: 0.72;
}

.auth-theme-toggle {
    width: 48px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-theme-toggle svg,
.auth-theme-toggle .icon-lg,
.auth-language-toggle svg,
.auth-language-toggle .icon-sm {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
}

.auth-language-toggle:hover,
.auth-language-toggle:focus,
.auth-theme-toggle:hover,
.auth-theme-toggle:focus {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.auth-language-menu {
    min-width: 240px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 20, 0.95);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
}

.auth-language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #e2e8f0;
}

.auth-language-item:hover,
.auth-language-item:focus,
.auth-language-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.auth-language-item__native {
    font-weight: 700;
}

.auth-language-item__label {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.68);
}

.auth-page-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 480px);
    gap: 24px;
    align-items: stretch;
}

.auth-hero-panel,
.auth-form-panel {
    min-width: 0;
}

.auth-hero-surface {
    position: relative;
    min-height: calc(100vh - 190px);
    min-height: calc(100dvh - 190px);
    padding: 36px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 26%),
        radial-gradient(circle at left center, rgba(255, 91, 97, 0.18), transparent 24%),
        linear-gradient(160deg, rgba(13, 17, 29, 0.92) 0%, rgba(11, 13, 20, 0.8) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 60px rgba(0, 0, 0, 0.24);
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-welcome-title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #ffffff;
}

.auth-welcome-sub {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.82);
}

.auth-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.auth-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-hero-pill svg,
.auth-form-footer__item svg {
    width: 15px;
    height: 15px;
}

.auth-illustration-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    margin-top: 32px;
}

.auth-illustration-figure {
    position: relative;
    width: min(100%, 720px);
}

.auth-illustration-figure--img {
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.auth-illustration-figure--img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.26));
}

.auth-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.auth-metric-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.auth-metric-card__value {
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.auth-metric-card__label {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.72);
}

.auth-form-panel {
    display: flex;
    align-items: stretch;
}

.auth-content-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 32px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(8, 12, 20, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-form-intro {
    margin-bottom: 24px;
}

.auth-form-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fda4af;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #ffffff;
}

.auth-form-description {
    margin: 12px 0 0;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.7;
}

.auth-page-v2 .form-label {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-page-v2 .form-control {
    min-height: 52px;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.auth-page-v2 .form-control::placeholder {
    color: rgba(226, 232, 240, 0.42);
}

.auth-page-v2 .form-control:focus {
    border-color: rgba(255, 126, 131, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(255, 91, 97, 0.14) !important;
}

.auth-page-v2 .form-control.is-invalid {
    border-color: rgba(248, 113, 113, 0.92) !important;
}

.auth-page-v2 .invalid-feedback {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #fca5a5;
    display: none;
}

.auth-page-v2 .form-control.is-invalid + .invalid-feedback {
    display: block;
}

.auth-page-v2 .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-page-v2 .btn-password-toggle {
    min-width: 54px;
    border-radius: 0 16px 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(226, 232, 240, 0.78) !important;
}

.auth-page-v2 .btn-password-toggle:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.auth-page-v2 .form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.auth-page-v2 .form-check-input:checked {
    background-color: #ff5b61;
    border-color: #ff5b61;
}

.auth-page-v2 .form-check-label {
    color: rgba(226, 232, 240, 0.78);
}

.auth-forgot-link,
.auth-signup-link {
    color: #fda4af;
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot-link:hover,
.auth-signup-link:hover {
    color: #ffe4e6;
}

.auth-page-v2 .btn-auth-login {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ff5b61 0%, #d1364a 48%, #6b1220 100%);
    box-shadow: 0 20px 36px rgba(150, 25, 38, 0.3);
}

.auth-page-v2 .btn-auth-login:hover,
.auth-page-v2 .btn-auth-login:focus {
    color: #ffffff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ff7075 0%, #dc465a 48%, #7a1625 100%);
}

.auth-divider-text {
    margin: 1rem 0;
    text-align: center;
    color: rgba(226, 232, 240, 0.52);
    font-size: 0.84rem;
}

.google-signin-wrap,
.google-signin-button {
    width: 100%;
}

.google-signin-button {
    min-height: 44px;
}

.google-signin-button > div {
    margin: 0 auto;
}

.auth-page-v2 .btn-google {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    font-weight: 600;
}

.auth-page-v2 .btn-google:hover {
    background: rgba(255, 255, 255, 0.09) !important;
}

.auth-page-v2 .btn-google .g-icon {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23EA4335' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%234285F4' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%2334A853' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23FBBC05' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-google-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.auth-form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.auth-form-footer__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.84rem;
    font-weight: 600;
}

body[data-layout-mode="light"] .auth-page-v2 {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 18%),
        linear-gradient(145deg, #f4f7ff 0%, #eef2ff 45%, #f8fafc 100%);
    color: #0f172a;
}

body[data-layout-mode="light"] .auth-page-shell {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64)),
        rgba(255, 255, 255, 0.66);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body[data-layout-mode="light"] .auth-logo-wrap,
body[data-layout-mode="light"] .auth-logo-title,
body[data-layout-mode="light"] .auth-form-title,
body[data-layout-mode="light"] .auth-welcome-title,
body[data-layout-mode="light"] .auth-page-v2 .form-label {
    color: #0f172a;
}

body[data-layout-mode="light"] .auth-logo-subtitle,
body[data-layout-mode="light"] .auth-form-description,
body[data-layout-mode="light"] .auth-welcome-sub,
body[data-layout-mode="light"] .auth-metric-card__label,
body[data-layout-mode="light"] .auth-divider-text,
body[data-layout-mode="light"] .auth-page-v2 .form-check-label,
body[data-layout-mode="light"] .auth-form-footer__item {
    color: #475569;
}

body[data-layout-mode="light"] .auth-language-toggle,
body[data-layout-mode="light"] .auth-theme-toggle {
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

body[data-layout-mode="light"] .auth-language-toggle:hover,
body[data-layout-mode="light"] .auth-language-toggle:focus,
body[data-layout-mode="light"] .auth-theme-toggle:hover,
body[data-layout-mode="light"] .auth-theme-toggle:focus {
    border-color: rgba(99, 102, 241, 0.24) !important;
    background: #ffffff !important;
    color: #111827 !important;
}

body[data-layout-mode="light"] .auth-language-menu {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

body[data-layout-mode="light"] .auth-language-item {
    color: #1e293b;
}

body[data-layout-mode="light"] .auth-language-item:hover,
body[data-layout-mode="light"] .auth-language-item:focus,
body[data-layout-mode="light"] .auth-language-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: #111827;
}

body[data-layout-mode="light"] .auth-language-item__label {
    color: #64748b;
}

body[data-layout-mode="light"] .auth-hero-surface {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 24%),
        radial-gradient(circle at left center, rgba(245, 158, 11, 0.12), transparent 18%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.94) 100%);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

body[data-layout-mode="light"] .auth-hero-badge,
body[data-layout-mode="light"] .auth-hero-pill,
body[data-layout-mode="light"] .auth-metric-card,
body[data-layout-mode="light"] .auth-content-inner,
body[data-layout-mode="light"] .auth-form-footer__item {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

body[data-layout-mode="light"] .auth-hero-badge,
body[data-layout-mode="light"] .auth-hero-pill,
body[data-layout-mode="light"] .auth-metric-card__value,
body[data-layout-mode="light"] .auth-form-footer__item {
    color: #0f172a;
}

body[data-layout-mode="light"] .auth-content-inner {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94)),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

body[data-layout-mode="light"] .auth-form-kicker {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
}

body[data-layout-mode="light"] .auth-page-v2 .form-control,
body[data-layout-mode="light"] .auth-page-v2 .btn-password-toggle,
body[data-layout-mode="light"] .auth-page-v2 .btn-google {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: #ffffff !important;
    color: #111827 !important;
}

body[data-layout-mode="light"] .auth-page-v2 .form-control::placeholder {
    color: #64748b;
}

body[data-layout-mode="light"] .auth-page-v2 .btn-password-toggle:hover,
body[data-layout-mode="light"] .auth-page-v2 .btn-google:hover {
    background: #f8fafc !important;
}

body[data-layout-mode="light"] .auth-forgot-link,
body[data-layout-mode="light"] .auth-signup-link {
    color: #4f46e5;
}

body[data-layout-mode="light"] .auth-forgot-link:hover,
body[data-layout-mode="light"] .auth-signup-link:hover {
    color: #312e81;
}

body[data-layout-mode="light"] .auth-page-v2 .btn-auth-login {
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 48%, #312e81 100%);
}

body[data-layout-mode="light"] .auth-page-v2 .btn-auth-login:hover,
body[data-layout-mode="light"] .auth-page-v2 .btn-auth-login:focus {
    background: linear-gradient(135deg, #7478ff 0%, #5a50f0 48%, #3730a3 100%);
}

@media (max-width: 1199px) {
    .auth-page-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    }

    .auth-hero-surface {
        padding: 30px;
    }

    .auth-content-inner {
        padding: 28px 26px;
    }
}

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

    .auth-page-shell {
        min-height: auto;
        padding: 14px;
        border-radius: 28px;
    }

    .auth-page-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .auth-header-actions {
        justify-content: space-between;
    }

    .auth-language-dropdown {
        flex: 1;
    }

    .auth-language-toggle {
        width: 100%;
        justify-content: center;
    }

    .auth-page-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-hero-surface,
    .auth-content-inner {
        min-height: auto;
    }

    .auth-form-panel {
        order: -1;
    }

    .auth-hero-surface {
        padding: 24px;
    }

    .auth-welcome-title {
        max-width: 100%;
    }

    .auth-illustration-area {
        min-height: 240px;
    }

    .auth-illustration-figure--img img {
        max-height: 320px;
    }
}

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

    .auth-page-shell {
        padding: 12px;
        border-radius: 22px;
    }

    .auth-page-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 14px;
    }

    .auth-logo-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .auth-logo-title {
        font-size: 1rem;
    }

    .auth-logo-subtitle {
        font-size: 0.66rem;
    }

    .auth-header-actions {
        width: 100%;
        gap: 10px;
    }

    .auth-language-toggle,
    .auth-theme-toggle {
        min-height: 44px;
        border-radius: 14px !important;
    }

    .auth-theme-toggle {
        width: 44px;
    }

    .auth-form-panel {
        order: -1;
    }

    .auth-hero-surface,
    .auth-content-inner {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .auth-form-intro {
        margin-bottom: 18px;
    }

    .auth-welcome-title {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .auth-welcome-sub,
    .auth-form-description {
        font-size: 0.94rem;
    }

    .auth-hero-pills {
        gap: 10px;
    }

    .auth-hero-pill {
        width: 100%;
        justify-content: center;
    }

    .auth-illustration-area {
        min-height: 150px;
        margin-top: 18px;
    }

    .auth-illustration-figure--img {
        padding: 10px;
        border-radius: 18px;
    }

    .auth-illustration-figure--img img {
        max-height: 180px;
    }

    .auth-hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

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

    .auth-form-description,
    .auth-welcome-sub {
        margin-top: 10px;
    }

    .auth-options-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-form-footer__item {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page-header,
    .auth-page-grid,
    .auth-logo-wrap,
    .auth-language-toggle,
    .auth-theme-toggle,
    .auth-hero-surface,
    .auth-form-panel,
    .auth-metric-card,
    .auth-hero-pill,
    .auth-form-footer__item,
    .auth-page-v2 .form-control,
    .auth-page-v2 .btn-password-toggle,
    .auth-page-v2 .btn-auth-login,
    .auth-page-v2 .btn-google {
        transition: none !important;
    }
}
