:root {
    --bg1: #fff3f8;
    --bg2: #f7f9ff;
    --text: #1e2a3a;
    --muted: #6b7a90;
    --primary: #ff3b78;
    --border: rgba(30,42,58,.10);
    --shadow: 0 22px 55px rgba(15,23,42,.12);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: radial-gradient(900px 500px at 20% 10%, rgba(255,59,120,.22), transparent 60%), radial-gradient(900px 500px at 90% 90%, rgba(99,102,241,.14), transparent 60%), linear-gradient(135deg, var(--bg1), var(--bg2));
    overflow: hidden;
}

a {
    text-decoration: none;
}

.page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 14px;
}

.card-shell {
    width: 100%;
    max-width: 980px;
    height: min(620px, calc(100svh - 28px));
    background: rgba(255,255,255,.60);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

/* LEFT (IMAGE) */
.hero {
    position: relative;
    background: linear-gradient(155deg, rgba(255,59,120,.92), rgba(255,90,143,.80));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    isolation: isolate; /* for blend effects */
}

/* nicer glass */
.hero-glass {
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0,0,0,.14);
    pointer-events: none;
    z-index: 1;
}

/* soft light blobs (behind image, looks premium) */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    top: -120px;
    left: -140px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 60%);
}

.hero::after {
    bottom: -140px;
    right: -160px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
    opacity: .45;
}

.brand {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    z-index: 3;
}

    .brand .mark {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.22);
        backdrop-filter: blur(10px);
    }

    .brand .t1 {
        margin: 0;
        font-weight: 800;
        line-height: 1.05;
    }

    .brand .t2 {
        margin: 0;
        opacity: .92;
        font-weight: 600;
        font-size: .92rem;
    }

/* === YOUR IMAGE (more transparent + beautiful) === */
.hero img {
    position: relative;
    z-index: 2;
    max-height: 88%;
    width: auto;
    max-width: 95%;
    object-fit: contain;
    /* transparency + premium look */
    opacity: .78; /* <- main transparency */
    filter: drop-shadow(0 26px 40px rgba(0,0,0,.22)) /* softer depth */
    saturate(1.08) contrast(1.05);
    transform: translateY(6px);
    user-select: none;
    -webkit-user-drag: none;
    transition: .25s ease;
}

.hero:hover img {
    opacity: .88;
    transform: translateY(2px);
    filter: drop-shadow(0 30px 46px rgba(0,0,0,.24)) saturate(1.12) contrast(1.06);
}

/* subtle fog on top of image (makes it glassy) */
.image-fog {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(520px 260px at 55% 35%, rgba(255,255,255,.20), transparent 60%), radial-gradient(420px 220px at 45% 70%, rgba(255,255,255,.14), transparent 60%);
    mix-blend-mode: screen;
    opacity: .9;
}

/* RIGHT (FORM) */
.panel {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
    padding: 34px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrap {
    width: 100%;
    max-width: 360px;
}

.head h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.head p {
    margin: 6px 0 18px;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
}

.input-wrap {
    position: relative;
    margin-bottom: 12px;
}

.ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.form-control.auth {
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(242,245,251,.95);
    padding-left: 44px;
    padding-right: 44px;
    font-weight: 700;
    box-shadow: none !important;
}

    .form-control.auth:focus {
        background: #fff;
        border-color: rgba(255,59,120,.35);
    }

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.9);
    display: grid;
    place-items: center;
    color: var(--muted);
    cursor: pointer;
}

    .toggle-pass:hover {
        color: var(--primary);
        border-color: rgba(255,59,120,.25);
    }

.row-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 14px;
}

.tiny {
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
}

    .tiny a {
        color: var(--primary);
        font-weight: 800;
    }

.btn-login {
    height: 48px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255,59,120,.28);
    background: rgba(255,59,120,.12);
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -.01em;
    transition: .18s ease;
}

    .btn-login:hover {
        background: rgba(255,59,120,.16);
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(255,59,120,.14);
    }

.shake {
    animation: shake .28s ease-in-out 0s 2;
}

@keyframes shake {
    0%,100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* Mobile */
@media (max-width: 991.98px) {
    .card-shell {
        grid-template-columns: 1fr;
        height: calc(100svh - 28px);
    }

    .hero {
        padding: 14px;
        min-height: 38%;
    }

    .hero-glass {
        inset: 12px;
    }

    .hero img {
        max-height: 92%;
        opacity: .75; /* keep transparent on mobile too */
    }

    .panel {
        padding: 18px 16px 20px;
        align-items: flex-start;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-wrap {
        max-width: 380px;
        margin: 0 auto;
    }

    .head h2 {
        font-size: 1.35rem;
    }
}
