@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --bg: #07111b;
    --bg-soft: #0d1825;
    --panel: rgba(12, 24, 38, 0.74);
    --panel-strong: rgba(13, 24, 37, 0.95);
    --line: rgba(148, 186, 255, 0.16);
    --text: #f4f8ff;
    --muted: #93a7bd;
    --primary: #59f0d1;
    --secondary: #6ca8ff;
    --danger: #ff8f9f;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at top left,
            rgba(108, 168, 255, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(89, 240, 209, 0.14),
            transparent 22%
        ),
        linear-gradient(180deg, #08111c 0%, #07111b 45%, #040a12 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 16px;
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 24px;
    align-items: stretch;
}

.auth-brand-panel,
.wrapper {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-brand-panel {
    padding: 34px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(89, 240, 209, 0.16),
            transparent 26%
        ),
        linear-gradient(180deg, rgba(13, 24, 37, 0.94), rgba(8, 15, 24, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-mark {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
}

.auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.auth-brand-copy span {
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-brand-content {
    margin-top: 44px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(137, 192, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #cce4ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 16px rgba(89, 240, 209, 0.65);
}

.auth-brand-content h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.auth-summary {
    margin-top: 16px;
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.7;
}

.auth-points {
    list-style: none;
    margin-top: 30px;
    display: grid;
    gap: 12px;
}

.auth-points li {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #d9eaff;
    font-size: 0.95rem;
}

.wrapper {
    overflow: hidden;
    background: var(--panel-strong);
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.wrapper .title-text {
    display: flex;
    width: 200%;
}

.wrapper .title {
    width: 50%;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    transition: all 0.45s ease;
}

.wrapper .slide-controls {
    position: relative;
    display: flex;
    height: 52px;
    width: 100%;
    overflow: hidden;
    margin: 26px 0 16px;
    justify-content: space-between;
    border: 1px solid rgba(137, 192, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.slide-controls .slide {
    height: 100%;
    width: 100%;
    color: #0a1925;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.35s ease;
}

.slide-controls label.signup {
    color: #d3e8ff;
}

.slide-controls .slider-tab {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    width: 50%;
    z-index: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #86f4ff);
    transition: all 0.45s ease;
}

input[type="radio"] {
    display: none;
}

#signup:checked ~ .slider-tab {
    left: 50%;
}

#signup:checked ~ label.signup {
    color: #0a1925;
    cursor: default;
    user-select: none;
}

#signup:checked ~ label.login {
    color: #d3e8ff;
}

#login:checked ~ label.signup {
    color: #d3e8ff;
}

#login:checked ~ label.login {
    cursor: default;
    user-select: none;
}

.wrapper .form-container {
    width: 100%;
    overflow: hidden;
}

.auth-errors {
    list-style: none;
    margin: 6px 0 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 143, 159, 0.36);
    background: rgba(255, 143, 159, 0.1);
    display: grid;
    gap: 6px;
}

.auth-errors li {
    color: #ffd3da;
    font-size: 0.92rem;
}

.form-container .form-inner {
    display: flex;
    width: 200%;
}

.form-container .form-inner form {
    width: 50%;
    transition: all 0.45s ease;
}

.form-inner form .field {
    height: 54px;
    width: 100%;
    margin-top: 16px;
}

.form-inner form .field input {
    height: 100%;
    width: 100%;
    outline: none;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(137, 192, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-inner form .field input:focus {
    border-color: rgba(89, 240, 209, 0.7);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 0 4px rgba(89, 240, 209, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.form-inner form .field input::placeholder {
    color: #7d93ab;
}

.form-inner form .pass-link {
    margin-top: 12px;
}

.form-inner form .signup-link {
    text-align: center;
    margin-top: 24px;
}

.form-inner form .pass-link a,
.form-inner form .signup-link a {
    color: #b3e4ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-inner form .pass-link a:hover,
.form-inner form .signup-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

form .btn {
    height: 54px;
    width: 100%;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-top: 14px;
}

form .btn .btn-layer {
    height: 100%;
    width: 300%;
    position: absolute;
    left: -100%;
    background: linear-gradient(
        135deg,
        var(--primary),
        #86f4ff,
        var(--secondary)
    );
    border-radius: 14px;
    transition: left 0.35s ease;
}

form .btn:hover .btn-layer {
    left: 0;
}

form .btn input[type="submit"] {
    height: 100%;
    width: 100%;
    z-index: 1;
    position: relative;
    background: none;
    border: none;
    color: #031119;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.auth-home-link {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-home-link a {
    color: #d9efff;
}

.auth-home-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

::selection {
    background: rgba(89, 240, 209, 0.4);
    color: #00131e;
}

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

    .auth-brand-panel {
        min-height: 0;
        padding: 24px;
    }

    .auth-brand-content {
        margin-top: 26px;
    }

    .auth-brand-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}

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

    .wrapper,
    .auth-brand-panel {
        border-radius: 22px;
    }

    .wrapper {
        padding: 22px;
    }

    .wrapper .title {
        font-size: 1.7rem;
    }

    .form-inner form .field {
        height: 50px;
    }

    .auth-points li {
        font-size: 0.9rem;
    }
}

.swal2-popup.auth-success-popup {
    border-radius: 20px;
    border: 1px solid rgba(148, 186, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.swal2-popup.auth-success-popup .swal2-title.auth-success-title {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}

.swal2-popup.auth-success-popup .swal2-confirm.auth-success-button {
    color: #031119;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 10px 28px rgba(89, 240, 209, 0.25);
}
