:root{
    --bg:#09090f;
    --panel:#141420;
    --stroke:rgba(255,255,255,.08);
    --text:#f7f4ff;
    --muted:#a49ebc;
    --purple:#7b3ff2;
    --pink:#ff4fd8;
    --blue:#4b7bff;
    --shadow:0 28px 90px rgba(0,0,0,.46);
}

*{box-sizing:border-box}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 12% 12%,rgba(123,63,242,.28),transparent 26%),
        radial-gradient(circle at 88% 10%,rgba(255,79,216,.16),transparent 24%),
        radial-gradient(circle at 76% 88%,rgba(75,123,255,.18),transparent 30%),
        linear-gradient(135deg,#07070c 0%,#0d0d16 42%,#12121d 100%);
}

.page{
    min-height:100vh;
    width:min(1440px,94vw);
    margin:0 auto;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:64px;
    position:relative;
    padding:34px 0;
}

.glow{
    position:absolute;
    width:560px;
    height:560px;
    border-radius:50%;
    background:linear-gradient(135deg,rgba(75,123,255,.18),rgba(123,63,242,.18),rgba(255,79,216,.16));
    filter:blur(18px);
    right:-180px;
    top:80px;
    z-index:0;
}

.left,.login-wrap{position:relative;z-index:2}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:44px;
}

.logo{
    width:52px;
    height:52px;
    border-radius:18px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:900;
    background:linear-gradient(135deg,var(--blue),var(--purple),var(--pink));
    box-shadow:0 18px 48px rgba(123,63,242,.36);
}

.brand h1{margin:0;font-size:22px;letter-spacing:-.05em}

.brand p{margin:3px 0 0;color:var(--muted);font-size:13px;font-weight:600}

.eyebrow{
    display:inline-flex;
    padding:9px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.07);
    color:#ded8ff;
    font-size:12px;
    font-weight:900;
    letter-spacing:.09em;
    text-transform:uppercase;
}

h2{
    max-width:680px;
    margin:24px 0 18px;
    font-size:68px;
    line-height:.92;
    letter-spacing:-.08em;
}

.lead{
    max-width:560px;
    margin:0;
    color:rgba(255,255,255,.7);
    font-size:17px;
    line-height:1.75;
}

.preview-stack{
    position:relative;
    width:540px;
    height:300px;
    margin-top:48px;
}

.preview-card{
    position:absolute;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.13);
    box-shadow:0 28px 80px rgba(0,0,0,.42);
    overflow:hidden;
}

.preview-card.one{
    width:250px;
    height:300px;
    left:144px;
    top:0;
    background:linear-gradient(145deg,#14142b,#6f35ff,#ff67da);
    z-index:3;
}

.preview-card.two{
    width:210px;
    height:252px;
    right:20px;
    top:34px;
    background:linear-gradient(145deg,#101e48,#4b7bff,#b55bff);
    z-index:2;
}

.preview-card.three{
    width:200px;
    height:230px;
    left:0;
    top:52px;
    background:linear-gradient(145deg,#231145,#8945ff,#ffd0f6);
    z-index:1;
}

.preview-card:before{
    content:"";
    position:absolute;
    width:98px;
    height:98px;
    border-radius:50%;
    top:24px;
    right:22px;
    background:rgba(255,255,255,.18);
}

.preview-card:after{
    content:"EVENT";
    position:absolute;
    left:24px;
    bottom:26px;
    color:#fff;
    font-size:14px;
    letter-spacing:.08em;
    font-weight:900;
}

.login-wrap{display:flex;justify-content:center}

.login-card{
    width:min(470px,100%);
    border-radius:38px;
    border:1px solid var(--stroke);
    background:
        radial-gradient(circle at 20% 0%,rgba(255,255,255,.09),transparent 28%),
        linear-gradient(180deg,rgba(22,22,34,.96),rgba(16,16,26,.9));
    backdrop-filter:blur(24px);
    box-shadow:var(--shadow);
    padding:36px;
}

.login-card h3{
    margin:0 0 8px;
    font-size:32px;
    letter-spacing:-.055em;
}

.login-card .sub{
    margin:0 0 28px;
    color:var(--muted);
    line-height:1.55;
    font-size:14px;
}

.error-box{
    margin-bottom:20px;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid rgba(255,79,120,.3);
    background:rgba(255,79,120,.08);
}

.error-box p{
    margin:6px 0;
    color:#ff8ea8;
    font-size:13px;
    font-weight:700;
}

.field{margin-bottom:16px}

label{
    display:block;
    color:#ded8ff;
    font-size:13px;
    font-weight:800;
    margin-bottom:8px;
}

.input{
    width:100%;
    min-height:54px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:#10101a;
    color:#fff;
    padding:0 16px;
    font-size:15px;
    outline:none;
    transition:.22s ease;
}

.input:focus{
    border-color:rgba(157,99,255,.7);
    box-shadow:0 0 0 4px rgba(123,63,242,.18);
}

.primary{
    width:100%;
    min-height:56px;
    border:0;
    border-radius:19px;
    color:#fff;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    background:linear-gradient(135deg,var(--blue),var(--purple),var(--pink));
    box-shadow:0 18px 42px rgba(123,63,242,.34);
}

.signup{
    text-align:center;
    color:var(--muted);
    margin:24px 0 0;
    font-size:14px;
}

.link{
    color:#b99cff;
    text-decoration:none;
    font-weight:800;
}

.security{
    margin-top:22px;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}


.success-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(123, 228, 169, 0.3);
    background: rgba(123, 228, 169, 0.08);
}

.success-box p {
    margin: 6px 0;
    color: #8df0b4;
    font-size: 13px;
    font-weight: 700;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 22px;
    font-weight: 900;
}

.otp-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.text-btn,
.text-link {
    border: 0;
    background: transparent;
    color: #b99cff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-family: Inter, sans-serif;
}

.text-btn:hover,
.text-link:hover,
.link:hover {
    color: #f1eaff;
    text-decoration: underline;
}

@media (max-width: 580px) {
    .otp-actions {
        justify-content: center;
        text-align: center;
    }
}

@media(max-width:1050px){
    .page{
        grid-template-columns:1fr;
        gap:32px;
    }

    h2{font-size:54px}

    .preview-stack{display:none}
}

@media(max-width:580px){
    .page{width:92vw}

    h2{font-size:42px}

    .login-card{
        padding:26px;
        border-radius:30px;
    }
}