:root {
    --auth-bg: #d8dde3;
    --shell-bg: #f7fafc;
    --panel-bg: #ffffff;
    --border-soft: #d9e2ea;
    --text-main: #17212b;
    --text-soft: #6b7a88;
    --teal-1: #0d7c86;
    --teal-2: #0a4f57;
    --teal-3: #07393f;
    --green-accent: #11998e;
    --green-accent-2: #0f766e;
    --input-bg: #ffffff;
    --shadow-main: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body.auth-modern-body {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    font-family: "Inter", sans-serif;
    color: var(--text-main);
}

.auth-modern-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.auth-modern-shell {
    width: min(1220px, 100%);
    min-height: 760px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 12px;
    padding: 14px;
}

.auth-modern-left,
.auth-modern-right {
    border-radius: 22px;
}

.auth-modern-left {
    background: var(--panel-bg);
    border: 1px solid var(--border-soft);
    padding: 28px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.auth-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #15313a;
}

.auth-form-area {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}

.auth-copy {
    margin-bottom: 24px;
}

.auth-copy h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #162833;
}

.auth-copy p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.auth-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    background: #f2f6f8;
    border: 1px solid #e4edf2;
    border-radius: 14px;
    margin-bottom: 24px;
    text-decoration: none;
}

.auth-switcher.is-otp-only {
    grid-template-columns: 1fr;
}

.auth-switch-item {
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none !important;
    color: #61717d;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    outline: none;
}

.auth-switch-item:hover,
.auth-switch-item:focus,
.auth-switch-item:active,
.auth-switch-item:visited {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.auth-switch-item:hover,
.auth-switch-item:focus {
    color: #182a34;
    background: linear-gradient(135deg, #f7fbfc, #eef5f7);
}

.auth-switch-item.active {
    background: linear-gradient(135deg, #f7fbfc, #eef5f7);
    color: #182a34;
    box-shadow: inset 0 0 0 1px #dde8ee;
}

.auth-switch-item::after {
    content: none !important;
}

.auth-modern-form .form-group {
    margin-bottom: 18px;
}

.auth-modern-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #42515e;
}

.auth-modern-form .required-dot {
    color: #1da1a8;
}

.auth-modern-form .form-control,
.auth-modern-form .form-control-user {
    height: 54px;
    border-radius: 14px !important;
    border: 1px solid #dbe5eb !important;
    background: var(--input-bg) !important;
    color: #17212b !important;
    padding: 0 16px 0 16px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.auth-modern-form textarea.form-control {
    min-height: 120px;
    padding-top: 14px !important;
}

.auth-modern-form .form-control:focus,
.auth-modern-form .form-control-user:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1) !important;
}

.auth-modern-form .password-wrap {
    position: relative;
}

.auth-modern-form .field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 3;
}

.auth-modern-form .btn-auth-submit {
    height: 54px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--green-accent),
        var(--green-accent-2)
    );
    color: #fff;
    box-shadow: 0 14px 24px rgba(17, 153, 142, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-modern-form .btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(17, 153, 142, 0.28);
}

.auth-bottom-link {
    text-align: center;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.auth-bottom-link a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.auth-bottom-link a,
.auth-bottom-link a:hover,
.auth-bottom-link a:focus,
.auth-bottom-link a:active,
.auth-bottom-link a:visited,
.auth-footer-links a,
.auth-footer-links a:hover,
.auth-footer-links a:focus,
.auth-footer-links a:active,
.auth-footer-links a:visited {
    text-decoration: none !important;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #7a8793;
    margin-top: 26px;
}

.auth-footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-footer-links a {
    color: #0f766e;
    text-decoration: none;
}

.auth-modern-right {
    position: relative;
    overflow: hidden;
    padding: 26px 28px 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02)
        ),
        linear-gradient(180deg, #0d6670 0%, #084a50 45%, #06383d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modern-right::before,
.auth-modern-right::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-modern-right::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 82px 82px;
    opacity: 0.45;
}

.auth-modern-right::after {
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(255, 255, 255, 0.12),
            transparent 26%
        ),
        radial-gradient(
            circle at 82% 22%,
            rgba(255, 255, 255, 0.12),
            transparent 24%
        ),
        radial-gradient(
            circle at 50% 84%,
            rgba(255, 255, 255, 0.1),
            transparent 26%
        );
}

.auth-slider {
    position: relative;
    height: 100%;
    min-height: 680px;
}

.auth-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(16px);
    transition: all 0.55s ease;
    pointer-events: none;
}

.auth-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-slide-grid {
    position: relative;
    height: 360px;
}

.auth-floating-card {
    position: absolute;
    width: 210px;
    min-height: 126px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 79, 87, 0.12);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(2, 20, 23, 0.22);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.auth-floating-card span {
    font-size: 12px;
    color: #5c6a78;
}

.auth-floating-card strong {
    font-size: 26px;
    line-height: 1;
    color: #0f172a;
}

.auth-floating-card small {
    color: #667888;
    font-size: 11px;
}

.card-a {
    top: 34px;
    left: 135px;
}
.card-b {
    top: 136px;
    right: 86px;
}
.card-c {
    top: 238px;
    left: 92px;
}

.auth-hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.auth-hero-logo-wrap {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.auth-hero-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-hero-eyebrow {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-hero-copy h2 {
    color: #fff;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    max-width: 620px;
    margin: 0 0 16px;
}

.auth-hero-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0;
}

.auth-slider-dots {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    z-index: 4;
}

.auth-dot {
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-dot.active {
    background: #ffffff;
}

.auth-otp-box {
    display: grid;
    gap: 16px;
}

.auth-otp-input {
    height: 64px !important;
    border-radius: 16px !important;
    letter-spacing: 10px;
    font-size: 28px !important;
    font-weight: 700;
    text-align: center;
}

.auth-info-box {
    background: #f3f8fa;
    border: 1px solid #e1edf2;
    color: #5b6d79;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
}

.auth-resend-btn {
    height: 50px;
    border-radius: 14px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .auth-modern-wrap {
        padding: 24px;
    }

    .auth-modern-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 12px;
    }

    .auth-modern-left,
    .auth-modern-right {
        border-radius: 20px;
    }

    .auth-modern-left {
        order: 2;
        padding: 24px 22px 18px;
    }

    .auth-modern-right {
        order: 1;
        min-height: 460px;
        padding: 22px 22px 20px;
    }

    .auth-slider {
        min-height: 420px;
    }

    .auth-slide-grid {
        height: 220px;
    }

    .auth-floating-card {
        width: 170px;
        min-height: 104px;
        padding: 14px;
        border-radius: 16px;
    }

    .auth-floating-card strong {
        font-size: 22px;
    }

    .card-a {
        top: 10px;
        left: 20px;
    }

    .card-b {
        top: 56px;
        right: 20px;
    }

    .card-c {
        top: 118px;
        left: 52px;
    }

    .auth-hero-copy {
        bottom: 42px;
        padding: 0 12px;
    }

    .auth-hero-copy h2 {
        font-size: 30px;
        max-width: 560px;
    }

    .auth-hero-copy p {
        font-size: 14px;
        line-height: 1.7;
        max-width: 540px;
    }

    .auth-slider-dots {
        left: 22px;
        right: 22px;
        bottom: 18px;
    }
}

#authContentArea {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .auth-modern-wrap {
        min-height: 100vh;
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .auth-modern-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        width: 100%;
        padding: 10px;
        gap: 10px;
        border-radius: 22px;
    }

    .auth-modern-left {
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .auth-brand-row {
        justify-content: center;
        margin-bottom: 20px;
    }

    .auth-copy {
        margin-bottom: 18px;
    }

    .auth-copy h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .auth-copy p {
        font-size: 13px;
        line-height: 1.6;
    }

    .auth-switcher {
        margin-bottom: 18px;
        padding: 4px;
        border-radius: 12px;
    }

    .auth-switch-item {
        height: 44px;
        font-size: 13px;
        border-radius: 10px;
    }

    .auth-modern-form .form-group {
        margin-bottom: 14px;
    }

    .auth-modern-form .form-control,
    .auth-modern-form .form-control-user {
        height: 48px;
        font-size: 13px !important;
        border-radius: 12px !important;
    }

    .auth-modern-form .btn-auth-submit {
        height: 48px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-footer {
        margin-top: 18px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .auth-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .auth-modern-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-modern-wrap {
        min-height: 100vh;
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .auth-modern-shell {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .auth-modern-left {
        padding: 18px 14px 16px;
    }

    .auth-brand-logo {
        width: 36px;
        height: 36px;
    }

    .auth-brand-name {
        font-size: 16px;
    }

    .auth-copy h1 {
        font-size: 22px;
    }

    .auth-copy p {
        font-size: 12px;
    }

    .auth-switch-item {
        height: 42px;
        font-size: 12px;
    }

    .auth-modern-form label {
        font-size: 12px;
    }

    .auth-bottom-link {
        font-size: 12px;
    }
}
