:root {
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --bg-dark: #0b1329;
    --card-glass: rgba(255,255,255,.04);
    --border-glass: rgba(255,255,255,.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

/* RESET */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    width:100%;
    overflow-x:hidden;
}

body{
    min-height:100vh;
    width:100%;
    background:var(--bg-dark);
    color:var(--text-primary);

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

    overflow-x:hidden;
    overflow-y:auto;

    position:relative;

    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* Background */

.laundry-ambient{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:1;
}

.drum-glow{
    position:absolute;
    width:600px;
    height:600px;
    right:-250px;
    top:-220px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(14,165,233,.15) 0%,
        transparent 70%);
}

.bubble{
    position:absolute;
    border-radius:50%;
    background:linear-gradient(
        135deg,
        rgba(255,255,255,.12),
        rgba(14,165,233,.05)
    );
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(2px);
}

.b-one{
    width:180px;
    height:180px;
    left:5%;
    bottom:-40px;
    animation:wave 8s infinite ease-in-out;
}

.b-two{
    width:90px;
    height:90px;
    left:40%;
    top:15%;
    animation:wave 12s infinite ease-in-out 1s;
}

.b-three{
    width:280px;
    height:280px;
    right:8%;
    bottom:5%;
    animation:wave 16s infinite ease-in-out 2s;
}

@keyframes wave{

0%,100%{
transform:translateY(0);
}

50%{
transform:translateY(-20px);
}

}

/* Main Card */

.portal-wrapper{
    position:relative;
    z-index:5;

    width:100%;
    max-width:900px;

    min-height:580px;

    display:flex;

    background:rgba(15,23,42,.65);

    border:1px solid var(--border-glass);

    border-radius:24px;

    backdrop-filter:blur(20px);

    overflow:hidden;

    box-shadow:0 30px 60px rgba(0,0,0,.45);
}

/* Left */

.brand-panel{
    flex:1;

    padding:40px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    border-right:1px solid var(--border-glass);

    background:linear-gradient(
        145deg,
        rgba(14,165,233,.12),
        transparent
    );
}

.machine-icon{
    width:60px;
    height:60px;

    border-radius:50%;

    border:3px dashed var(--accent);

    display:flex;
    justify-content:center;
    align-items:center;

    margin-bottom:24px;

    animation:spin 20s linear infinite;
}

.inner-drum{
    width:34px;
    height:34px;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.2);
}

@keyframes spin{
100%{
transform:rotate(360deg);
}
}

.brand-panel h1{
    font-size:28px;
    font-weight:700;
}

.brand-panel span{
    color:var(--accent);
    font-weight:300;
}

.brand-panel p{
    color:var(--text-secondary);
    margin-top:8px;
    line-height:1.6;
}

.brand-footer{
    font-size:12px;
    color:#6b7280;
    letter-spacing:1px;
}

/* Right */

.form-panel{
    flex:1.2;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:50px;
}

.auth-card{
    width:100%;
}

.hidden{
    display:none;
}

h2{
    font-size:26px;
    margin-bottom:10px;
}

.subtitle{
    color:var(--text-secondary);
    font-size:14px;
    line-height:1.6;
    margin-bottom:30px;
}

.input-field{
    margin-bottom:20px;
}

.field-label-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

label{
    display:block;
    font-size:12px;
    color:var(--text-secondary);
    margin-bottom:8px;
    text-transform:uppercase;
}

.context-link{
    color:var(--accent);
    text-decoration:none;
    font-size:12px;
}

.context-link:hover{
    text-decoration:underline;
}

input{
    width:100%;
    padding:13px 16px;

    border-radius:10px;

    border:1px solid var(--border-glass);

    background:rgba(255,255,255,.04);

    color:#fff;

    outline:none;

    transition:.25s;
}

input:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(14,165,233,.15);
}

.action-btn{
    width:100%;
    margin-top:10px;

    padding:14px;

    border:none;

    border-radius:10px;

    background:var(--accent);

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

.action-btn:hover{
    background:var(--accent-hover);
}

.footer-toggle{
    margin-top:25px;
    text-align:center;
    color:var(--text-secondary);
    font-size:14px;
}

.footer-toggle a{
    color:var(--accent);
    text-decoration:none;
}

.footer-toggle a:hover{
    text-decoration:underline;
}

/* Status */

#status-message{
    position:fixed;

    top:20px;

    left:50%;

    transform:translateX(-50%);

    width:min(400px,90%);

    padding:15px;

    border-radius:12px;

    text-align:center;

    z-index:99999;

    transition:.35s;
}

.status-hidden{
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,-20px);
}

.status-success{
    background:#d4edda;
    color:#155724;
}

.status-error{
    background:#f8d7da;
    color:#721c24;
}

/* Mobile */

@media (max-width:768px){

body{
    align-items:flex-start;
    padding:15px;
}

.portal-wrapper{
    flex-direction:column;
    min-height:auto;
    width:100%;
    max-width:480px;
}

.brand-panel{
    border-right:none;
    border-bottom:1px solid var(--border-glass);
    padding:30px;
}

.form-panel{
    padding:30px 25px;
}

.drum-glow{
    width:420px;
    height:420px;
    right:-180px;
}

.b-three{
    width:180px;
    height:180px;
}

}
/* =========================
   Button Loading State
========================= */

.action-btn{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    overflow:hidden;
    transition:.25s;
}

.action-btn:disabled{
    opacity:.8;
    cursor:not-allowed;
}

.action-btn.loading{
    color:transparent;
    pointer-events:none;
}

.action-btn.loading::after{
    content:"";
    position:absolute;
    width:20px;
    height:20px;
    border:3px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:btnSpin .8s linear infinite;
}

@keyframes btnSpin{
    to{
        transform:rotate(360deg);
    }
}
.install-banner{
    position:fixed;
    top:20px;
    left:50%;
    transform:translate(-50%,-180%);
    transition:transform .35s ease;

    width:min(95%,460px);

    background:#111827;
    color:#fff;

    border-radius:18px;

    padding:18px;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

    z-index:99999;
}

.install-banner.show{
    transform:translate(-50%,0);
}

.install-content{
    display:flex;
    align-items:center;
    gap:15px;
}

.install-logo{
    width:52px;
    height:52px;
    border-radius:14px;
    flex-shrink:0;
}

.install-info{
    flex:1;
}

.install-info h4{
    margin:0;
    font-size:18px;
    font-weight:600;
}

.install-info p{
    margin:6px 0 0;
    color:#cbd5e1;
    font-size:14px;
    line-height:1.5;
}

.install-buttons{

    display:flex;
    justify-content:flex-end;
    gap:12px;

    margin-top:18px;
}

.btn-primary{

    border:none;

    background:#2563eb;

    color:white;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;
}

.btn-primary:hover{

    background:#1d4ed8;
}

.btn-secondary{

    border:none;

    background:transparent;

    color:#d1d5db;

    cursor:pointer;

    font-weight:600;

    padding:10px 16px;
}

.btn-secondary:hover{

    color:white;
}