:root {
    --zoft-primary: #120c38;
    --zoft-hover: #5a34a1;
    --zoft-accent: #7c55c9;
    --zoft-bg: #f4f2f8;
    --zoft-ink: #16122b;
    --zoft-muted: #6b6482;
    --zoft-card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at top left, #efe9ff 0%, #f7f6fb 48%, #e8ecf7 100%);
    color: var(--zoft-ink);
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1.25rem;
}

.auth-panel {
    margin: 0 auto;
    width: min(1120px, 100%);
}

.auth-panel--split {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr);
    border-radius: 28px;
    overflow: hidden;
    background: var(--zoft-card);
    box-shadow: 0 28px 70px rgba(18, 12, 56, 0.2);
}

.auth-side {
    position: relative;
    padding: 3rem;
}

.auth-side--visual {
    color: #ffffff;
    background: linear-gradient(140deg, #5a34a1 0%, #7b57cb 45%, #4a2d8c 100%);
    min-height: 540px;
    overflow: hidden;
}

.auth-side--form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--zoft-card);
}

.auth-side--visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cpath d='M10 40c40-30 80-30 120 0s80 30 120 0' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='2'/%3E%3Cpath d='M0 100c50-30 100-30 150 0s100 30 150 0' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2'/%3E%3Cpath d='M20 160c40-30 80-30 120 0s80 30 120 0' fill='none' stroke='rgba(255,255,255,0.18)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top 24px left 20px, bottom 40px right 20px, bottom -10px right -10px;
    opacity: 0.7;
    pointer-events: none;
}

.auth-side--visual > * {
    position: relative;
    z-index: 1;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--zoft-primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 150px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(18, 12, 56, 0.25));
}

.visual-content {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.visual-content h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
}

.visual-content p {
    font-size: 1.05rem;
    max-width: 320px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.visual-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.visual-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.visual-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0.7;
}

.bubble-lg {
    width: 220px;
    height: 220px;
    bottom: -40px;
    right: 30px;
    animation: float-soft 12s ease-in-out infinite;
}

.bubble-md {
    width: 120px;
    height: 120px;
    top: 110px;
    right: 80px;
    animation: float-soft 10s ease-in-out infinite;
}

.bubble-sm {
    width: 60px;
    height: 60px;
    bottom: 140px;
    left: 40px;
    animation: float-soft 9s ease-in-out infinite;
}

@keyframes float-soft {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
    100% {
        transform: translateY(0);
    }
}

.auth-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(18, 12, 56, 0.12);
    overflow: hidden;
    width: min(420px, 100%);
    margin: 0 auto;
}

.auth-card .card-body {
    padding: 1.9rem;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.auth-header p {
    color: var(--zoft-muted);
    margin-bottom: 1.5rem;
}

.input-group-login .input-group-text {
    border-radius: 14px 0 0 14px;
    border: 1px solid rgba(18, 12, 56, 0.12);
    background: #f6f4fb;
    color: var(--zoft-primary);
}

.input-group-login .form-control {
    border-radius: 0 14px 14px 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(18, 12, 56, 0.12);
}

.input-group-login .form-control:focus {
    border-color: var(--zoft-primary);
    box-shadow: 0 0 0 0.2rem rgba(18, 12, 56, 0.15);
}

.password-group .btn {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.toggle-password {
    border-color: rgba(18, 12, 56, 0.12);
    color: var(--zoft-primary);
    background: #f6f4fb;
}

.btn-primary {
    background: linear-gradient(120deg, var(--zoft-primary), var(--zoft-hover));
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(90, 52, 161, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(120deg, var(--zoft-hover), var(--zoft-accent));
}

.auth-footnote {
    margin-top: 1rem;
    color: var(--zoft-muted);
    font-size: 0.85rem;
    text-align: center;
}

.auth-footnote a {
    color: var(--zoft-hover);
    text-decoration: none;
    font-weight: 600;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

.modal-content {
    border-radius: 20px;
    border: 1px solid rgba(18, 12, 56, 0.08);
    box-shadow: 0 24px 50px rgba(18, 12, 56, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(18, 12, 56, 0.08);
    padding: 1.5rem 1.75rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 0 1.75rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(18, 12, 56, 0.08);
    padding: 1.25rem 1.75rem 1.5rem;
}

.modal-footer .btn-primary {
    min-width: 160px;
}

@media (max-width: 768px) {
    .auth-wrap {
        padding: 1.5rem 1rem;
    }

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

    .auth-side {
        padding: 2rem 1.5rem;
    }

    .auth-side--visual {
        display: none;
    }

    .auth-card .card-body {
        padding: 1.75rem;
    }
}
