.auth-body {
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: "Manrope", "Sora", sans-serif;
    background:
        radial-gradient(860px 560px at -10% -10%, rgba(31, 181, 162, 0.3), transparent 62%),
        radial-gradient(700px 520px at 110% 0%, rgba(41, 129, 255, 0.24), transparent 60%),
        linear-gradient(165deg, #edf6ff 0%, #e6f4f2 48%, #f5fbff 100%);
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.auth-body::before {
    width: min(40vw, 380px);
    height: min(40vw, 380px);
    left: -140px;
    top: -120px;
    border-radius: 44% 56% 61% 39% / 36% 41% 59% 64%;
    background: linear-gradient(135deg, rgba(17, 159, 136, 0.22), rgba(33, 131, 239, 0.1));
}

.auth-body::after {
    width: min(38vw, 340px);
    height: min(38vw, 340px);
    right: -130px;
    bottom: -120px;
    border-radius: 63% 37% 58% 42% / 42% 58% 42% 58%;
    background: linear-gradient(140deg, rgba(28, 112, 224, 0.24), rgba(32, 183, 143, 0.12));
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.9rem, 2.4vw, 2rem);
    position: relative;
    z-index: 1;
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(280px, 1fr);
}

.auth-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(140deg, rgba(5, 37, 86, 0.9), rgba(16, 69, 137, 0.85)),
        radial-gradient(220px circle at 84% 12%, rgba(34, 202, 178, 0.34), transparent 70%);
    color: #e9f4ff;
    padding: clamp(1.1rem, 2.4vw, 1.8rem);
    box-shadow: 0 20px 42px rgba(7, 35, 84, 0.22);
    position: relative;
    overflow: hidden;
}

.auth-panel::after {
    content: "";
    position: absolute;
    inset: auto -35% -45% auto;
    width: 72%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(54, 219, 189, 0.26), rgba(54, 219, 189, 0));
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(193, 230, 255, 0.46);
    background: rgba(232, 246, 255, 0.12);
    color: #d6edff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-hero-title {
    margin: 0 0 0.55rem;
    color: #fff;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.28rem, 3vw, 1.95rem);
    line-height: 1.18;
}

.auth-hero-copy {
    margin: 0;
    max-width: 36ch;
    color: rgba(222, 239, 255, 0.93);
    font-size: 0.9rem;
    line-height: 1.48;
}

.auth-banner-carousel {
    margin-top: 1rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(192, 228, 255, 0.3);
    background: rgba(0, 0, 0, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
}

.auth-banner-frame {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.auth-banner-image {
    width: 100%;
    height: clamp(170px, 24vw, 240px);
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-banner-frame:hover .auth-banner-image {
    transform: scale(1.04);
}

.auth-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4, 14, 30, 0.82) 0%,
        rgba(4, 14, 30, 0.38) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem 0.85rem;
    gap: 0.3rem;
}

.auth-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #d6f0ff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(6px);
}

.auth-banner-title {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.01em;
}

/* Custom dots */
.auth-banner-dots {
    position: absolute;
    bottom: 0.6rem;
    right: 0.75rem;
    display: flex;
    gap: 0.35rem;
    z-index: 10;
}

.auth-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.auth-dot.active {
    width: 20px;
    background: #fff;
}

/* Prev/next arrows */
.auth-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.auth-banner-carousel:hover .auth-carousel-arrow {
    opacity: 1;
}

.auth-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.auth-carousel-arrow.carousel-control-prev {
    left: 0.5rem;
}

.auth-carousel-arrow.carousel-control-next {
    right: 0.5rem;
}

/* Slide transition — fade style */
.auth-banner-carousel .carousel-item {
    transition: opacity 0.55s ease;
}


.auth-hero-points {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.auth-hero-point {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    border-radius: 12px;
    padding: 0.5rem 0.58rem;
    border: 1px solid rgba(176, 227, 255, 0.26);
    background: rgba(220, 243, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.auth-hero-point i {
    color: #93e7d8;
    font-size: 0.9rem;
}

.auth-hero-foot {
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(199, 229, 255, 0.84);
}

.auth-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58)),
        radial-gradient(240px 160px at 96% -16%, rgba(32, 174, 147, 0.22), transparent 70%);
    box-shadow:
        0 22px 48px rgba(23, 52, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    padding: clamp(1.12rem, 2.3vw, 1.75rem);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    width: clamp(170px, 36vw, 250px);
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.82rem;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(13, 47, 74, 0.3);
}

.auth-title {
    color: #14344b;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.28rem, 3.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
}

.auth-subtitle {
    max-width: 34ch;
    margin: 0 auto;
    color: #4f6c75;
    font-size: 0.87rem;
    line-height: 1.45;
}

.auth-form {
    margin: 0;
}

.auth-form .form-label {
    margin-bottom: 0.35rem;
    color: #2f4f61;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-field {
    min-width: 0;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 0.72rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4e7899;
    font-size: 0.94rem;
    pointer-events: none;
}

.auth-input-wrap .form-control.glass-input {
    min-height: 2.86rem;
    border-radius: 12px;
    border: 1px solid rgba(171, 213, 229, 0.78);
    background: rgba(242, 251, 255, 0.86);
    color: #173e58;
    padding-left: 2.25rem;
    font-size: 0.92rem;
}

.auth-input-wrap .form-control.glass-input::placeholder {
    color: #7897a7;
}

.auth-input-wrap .form-control.glass-input:focus {
    border-color: rgba(31, 157, 131, 0.7);
    box-shadow: 0 0 0 0.18rem rgba(31, 157, 131, 0.18);
    background: rgba(248, 254, 255, 0.96);
}

.auth-submit-btn {
    min-height: 2.9rem;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.auth-links-row {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    font-size: 0.82rem;
}

.auth-links-row .link-clean {
    color: #0f7f96;
    font-weight: 700;
}

.auth-links-row .link-clean:hover {
    color: #19a08b;
}

.auth-section {
    width: min(520px, 100%);
}

.auth-section-register {
    width: min(680px, 100%);
}

.logo-orb {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    margin-inline: auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(145deg, #1771e7, #1ba092);
    box-shadow: 0 14px 28px rgba(20, 94, 163, 0.3);
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
        align-items: stretch;
    }

    .auth-shell-login .auth-panel,
    .auth-shell-register .auth-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-card-main {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.86rem;
        row-gap: 0.82rem;
    }

    .auth-form-grid .auth-field-full,
    .auth-form-grid .auth-submit-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .auth-panel {
        order: 2;
    }

    .auth-card-main {
        order: 1;
    }
}

@media (max-width: 575px) {
    .auth-wrapper {
        align-items: flex-start;
        padding-top: 0.65rem;
        padding-bottom: 0.8rem;
    }

    .auth-card,
    .auth-panel {
        border-radius: 1.2rem;
    }

    .auth-hero-copy {
        max-width: none;
    }

    .auth-banner-image {
        height: clamp(140px, 42vw, 190px);
    }

    .auth-links-row {
        justify-content: flex-start;
    }

    .auth-logo {
        width: clamp(150px, 56vw, 215px);
    }
}

html[data-theme="dark"] .auth-body {
    background:
        radial-gradient(860px 560px at -10% -10%, rgba(19, 166, 140, 0.25), transparent 62%),
        radial-gradient(700px 520px at 110% 0%, rgba(47, 109, 218, 0.2), transparent 60%),
        linear-gradient(165deg, #0b1a1f 0%, #0e1e26 48%, #0a151a 100%);
}

html[data-theme="dark"] .auth-panel {
    border-color: rgba(133, 201, 237, 0.2);
    background:
        linear-gradient(150deg, rgba(7, 31, 67, 0.94), rgba(11, 54, 109, 0.9)),
        radial-gradient(220px circle at 84% 12%, rgba(30, 188, 159, 0.2), transparent 70%);
    box-shadow: 0 24px 48px rgba(1, 8, 18, 0.5);
}

html[data-theme="dark"] .auth-banner-carousel {
    border-color: rgba(146, 198, 233, 0.24);
    background: rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .auth-banner-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


html[data-theme="dark"] .auth-card {
    border-color: rgba(159, 211, 223, 0.22);
    background:
        linear-gradient(165deg, rgba(18, 35, 44, 0.9), rgba(15, 27, 33, 0.82)),
        radial-gradient(240px 160px at 96% -16%, rgba(28, 172, 145, 0.2), transparent 70%);
    box-shadow:
        0 24px 48px rgba(1, 8, 10, 0.56),
        inset 0 1px 0 rgba(180, 224, 214, 0.12);
}

html[data-theme="dark"] .auth-title {
    color: #ecf8ff;
}

html[data-theme="dark"] .auth-subtitle {
    color: #9abfcb;
}

html[data-theme="dark"] .auth-logo {
    box-shadow: 0 16px 34px rgba(0, 7, 14, 0.55);
}

html[data-theme="dark"] .auth-form .form-label {
    color: #b8d2db;
}

html[data-theme="dark"] .auth-input-wrap i {
    color: #7ca4bf;
}

html[data-theme="dark"] .auth-input-wrap .form-control.glass-input {
    border-color: rgba(145, 198, 217, 0.26);
    background: rgba(15, 27, 34, 0.84);
    color: #e5f5ff;
}

html[data-theme="dark"] .auth-input-wrap .form-control.glass-input::placeholder {
    color: #88a8b7;
}

html[data-theme="dark"] .auth-input-wrap .form-control.glass-input:focus {
    background: rgba(17, 32, 40, 0.92);
    border-color: rgba(31, 169, 141, 0.62);
    box-shadow: 0 0 0 0.18rem rgba(31, 169, 141, 0.22);
}

html[data-theme="dark"] .auth-links-row .link-clean {
    color: #6fd2bf;
}

html[data-theme="dark"] .auth-links-row .link-clean:hover {
    color: #8fe2d3;
}

@media (prefers-reduced-motion: reduce) {
    .auth-panel,
    .auth-card,
    .auth-submit-btn,
    .auth-links-row .link-clean {
        transition: none !important;
    }
}
