/*=====================================================
 DATANET MINING AUTH — LOGIN / REGISTER
=====================================================*/

:root{
    --bg:#030712;
    --card:rgba(8,15,35,.82);
    --panel:rgba(8,15,35,.88);
    --border:rgba(255,255,255,.12);
    --text:#ffffff;
    --muted:#94a3b8;
    --soft:#dbeafe;
    --input:rgba(255,255,255,.065);
    --primary:#3558ff;
    --cyan:#25d0ff;
    --green:#22c55e;
    --yellow:#fbbf24;
    --red:#fb7185;
    --purple:#8b5cf6;
    --shadow:0 30px 90px rgba(0,0,0,.45);
}

html[data-theme="light"]{
    --bg:#eef5ff;
    --card:rgba(255,255,255,.78);
    --panel:rgba(255,255,255,.90);
    --border:rgba(15,23,42,.11);
    --text:#0f172a;
    --muted:#64748b;
    --soft:#1e3a8a;
    --input:rgba(15,23,42,.045);
    --shadow:0 30px 90px rgba(15,23,42,.16);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

button,
input{
    font-family:inherit;
}

a{
    color:inherit;
    text-decoration:none;
}


/*=====================================================
 BACKGROUND
=====================================================*/

.authBg{
    position:fixed;
    inset:0;
    z-index:-5;
    overflow:hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(37,208,255,.20), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(53,88,255,.22), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(34,197,94,.13), transparent 36%),
        linear-gradient(135deg,#020617,#030712 46%,#071529);
}

html[data-theme="light"] .authBg{
    background:
        radial-gradient(circle at 12% 12%, rgba(37,208,255,.22), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(53,88,255,.20), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(34,197,94,.12), transparent 36%),
        linear-gradient(135deg,#eff6ff,#f8fbff 46%,#eaf4ff);
}

.authStars{
    position:absolute;
    inset:0;
    background-image:
        radial-gradient(circle,rgba(255,255,255,.46) 1px,transparent 1px),
        radial-gradient(circle,rgba(255,255,255,.24) 1px,transparent 1px);
    background-size:70px 70px,120px 120px;
    opacity:.20;
    animation:authStarsMove 48s linear infinite;
}

html[data-theme="light"] .authStars{
    background-image:
        radial-gradient(circle,rgba(53,88,255,.20) 1px,transparent 1px),
        radial-gradient(circle,rgba(37,208,255,.18) 1px,transparent 1px);
    opacity:.35;
}

.authGlow{
    position:absolute;
    width:430px;
    height:430px;
    border-radius:50%;
    filter:blur(42px);
    opacity:.34;
}

.glowA{
    left:-150px;
    top:100px;
    background:rgba(53,88,255,.55);
    animation:authFloat 10s ease-in-out infinite;
}

.glowB{
    right:-140px;
    bottom:50px;
    background:rgba(37,208,255,.46);
    animation:authFloat 12s ease-in-out infinite reverse;
}

@keyframes authStarsMove{
    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-190px);
    }
}

@keyframes authFloat{
    0%,100%{
        transform:translate3d(0,0,0) scale(1);
    }

    50%{
        transform:translate3d(32px,-28px,0) scale(1.07);
    }
}


/*=====================================================
 LAYOUT
=====================================================*/

.authShell{
    width:min(1180px,calc(100% - 32px));
    min-height:100vh;
    margin:0 auto;
    padding:36px 0;

    display:grid;
    grid-template-columns:minmax(0,1fr) 460px;
    gap:22px;
    align-items:center;
}

.registerShell{
    grid-template-columns:minmax(0,1fr) 520px;
}

.authShowcase,
.authPanel{
    border:1px solid var(--border);
    background:
        linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035)),
        var(--card);
    box-shadow:var(--shadow);
    backdrop-filter:blur(30px);
    -webkit-backdrop-filter:blur(30px);
    overflow:hidden;
}

.authShowcase{
    min-height:660px;
    border-radius:38px;
    padding:34px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    position:relative;
}

.authShowcase::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 10%, rgba(37,208,255,.15), transparent 34%),
        radial-gradient(circle at 82% 85%, rgba(53,88,255,.18), transparent 36%);
}

.authPanel{
    border-radius:34px;
    padding:28px;
    position:relative;
}

.authPanel::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 90% 0%, rgba(37,208,255,.11), transparent 32%);
}


/*=====================================================
 SHOWCASE
=====================================================*/

.brandMark{
    position:relative;
    z-index:2;

    width:max-content;
    display:flex;
    align-items:center;
    gap:10px;

    min-height:48px;
    padding:0 15px;

    border:1px solid var(--border);
    border-radius:999px;

    background:rgba(255,255,255,.06);

    color:var(--text);
    font-size:13px;
    font-weight:950;
}

.brandMark i{
    width:32px;
    height:32px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:#fff;
    background:linear-gradient(145deg,var(--primary),var(--cyan));
    box-shadow:0 0 35px rgba(37,208,255,.34);
}

.authShowcase h1{
    position:relative;
    z-index:2;

    max-width:660px;

    margin-top:auto;

    color:var(--text);

    font-size:54px;
    line-height:.98;
    font-weight:950;
    letter-spacing:-.075em;
}

.authShowcase p{
    position:relative;
    z-index:2;

    max-width:680px;

    margin-top:18px;

    color:var(--muted);

    font-size:15px;
    line-height:1.85;
    font-weight:700;
}

.showcaseGrid{
    position:relative;
    z-index:2;

    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;

    margin-top:34px;
}

.showcaseGrid div{
    padding:18px;

    border:1px solid var(--border);
    border-radius:24px;

    background:rgba(255,255,255,.055);
}

.showcaseGrid i{
    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:14px;

    border-radius:16px;

    color:#fff;
    background:linear-gradient(145deg,var(--primary),var(--cyan));
}

.showcaseGrid strong{
    display:block;

    color:var(--text);

    font-size:14px;
    font-weight:950;
}

.showcaseGrid span{
    display:block;

    margin-top:6px;

    color:var(--muted);

    font-size:12px;
    line-height:1.6;
    font-weight:700;
}


/*=====================================================
 PANEL
=====================================================*/

.authTop{
    position:relative;
    z-index:2;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;

    margin-bottom:22px;
}

.authTop span{
    display:block;

    margin-bottom:5px;

    color:#72dfff;

    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
}

html[data-theme="light"] .authTop span{
    color:#2563eb;
}

.authTop h2{
    color:var(--text);

    font-size:32px;
    line-height:1;
    font-weight:950;
    letter-spacing:-.055em;
}

.themeToggle{
    width:48px;
    height:48px;

    border:none;
    border-radius:17px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;
    background:linear-gradient(145deg,var(--primary),var(--cyan));

    box-shadow:0 18px 45px rgba(37,208,255,.22);

    transition:.25s ease;
}

.themeToggle:hover{
    transform:translateY(-2px);
}

.authAlert{
    position:relative;
    z-index:2;

    display:flex;
    align-items:flex-start;
    gap:10px;

    margin-bottom:16px;
    padding:13px 14px;

    border-radius:18px;

    font-size:12px;
    line-height:1.6;
    font-weight:800;
}

.authAlert.error{
    color:#fecdd3;
    background:rgba(251,113,133,.10);
    border:1px solid rgba(251,113,133,.24);
}

.authForm{
    position:relative;
    z-index:2;

    display:grid;
    gap:14px;
}

.authInput{
    display:grid;
    gap:7px;
}

.authInput span{
    color:#a9cfff;

    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.05em;
}

html[data-theme="light"] .authInput span{
    color:#315d9f;
}

.authInput > div{
    min-height:56px;

    display:flex;
    align-items:center;
    gap:11px;

    padding:0 14px;

    border:1px solid var(--border);
    border-radius:18px;

    background:var(--input);

    transition:.25s ease;
}

.authInput > div:focus-within{
    border-color:rgba(37,208,255,.50);
    box-shadow:0 0 0 4px rgba(37,208,255,.10);
}

.authInput i{
    color:#67e8f9;
    font-size:14px;
}

html[data-theme="light"] .authInput i{
    color:#2563eb;
}

.authInput input{
    width:100%;
    height:54px;

    border:none;
    outline:none;

    color:var(--text);
    background:transparent;

    font-size:14px;
    font-weight:750;
}

.authInput input::placeholder{
    color:var(--muted);
}

.passwordToggle{
    width:38px;
    height:38px;

    border:none;
    border-radius:13px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--soft);
    background:rgba(255,255,255,.06);

    flex-shrink:0;
}

.passwordToggle i{
    color:inherit;
}

.authMetaRow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    margin-top:2px;

    color:var(--muted);

    font-size:12px;
    font-weight:800;
}

.authMetaRow a{
    color:#7dd3fc;
    font-weight:950;
}

html[data-theme="light"] .authMetaRow a{
    color:#2563eb;
}

.rememberBox{
    display:flex;
    align-items:center;
    gap:8px;
}

.rememberBox input{
    accent-color:var(--cyan);
}

.authButton{
    min-height:56px;

    margin-top:4px;

    border:none;
    border-radius:18px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    color:#fff;
    background:linear-gradient(145deg,var(--primary),var(--cyan));

    font-size:14px;
    font-weight:950;

    box-shadow:0 22px 58px rgba(37,208,255,.24);

    transition:.25s ease;
}

.authButton:hover{
    transform:translateY(-2px);
    box-shadow:0 28px 70px rgba(37,208,255,.34);
}

.authButton:disabled{
    opacity:.72;
    cursor:not-allowed;
    transform:none;
}

.authSwitch{
    position:relative;
    z-index:2;

    margin-top:18px;
    padding-top:18px;

    border-top:1px solid var(--border);

    color:var(--muted);

    text-align:center;

    font-size:13px;
    font-weight:750;
}

.authSwitch a{
    color:#7dd3fc;
    font-weight:950;
}

html[data-theme="light"] .authSwitch a{
    color:#2563eb;
}


/*=====================================================
 RESPONSIVE
=====================================================*/

@media(max-width:1080px){
    .authShell,
    .registerShell{
        grid-template-columns:1fr;
        align-items:start;
        padding:24px 0;
    }

    .authShowcase{
        min-height:auto;
    }

    .authShowcase h1{
        margin-top:90px;
        font-size:42px;
    }
}

@media(max-width:760px){
    .authShell,
    .registerShell{
        width:min(100% - 22px,1180px);
        padding:16px 0;
    }

    .authShowcase{
        padding:22px;
        border-radius:28px;
    }

    .authPanel{
        padding:20px;
        border-radius:28px;
    }

    .authShowcase h1{
        margin-top:70px;
        font-size:34px;
    }

    .authShowcase p{
        font-size:13px;
    }

    .showcaseGrid{
        grid-template-columns:1fr;
    }

    .authTop h2{
        font-size:28px;
    }

    .authMetaRow{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:430px){
    .authShowcase h1{
        font-size:30px;
    }

    .authPanel{
        padding:16px;
    }

    .authInput > div{
        min-height:54px;
    }
}