*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(0,255,180,.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0,120,255,.10), transparent 35%),
        linear-gradient(135deg, #071017, #020409 70%, #000);
    font-family:"Fira Code","Hack","JetBrains Mono","Consolas",monospace;
    color:#d7fff4;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:22px;
}

.terminal-wrap{
    width:100%;
    max-width:760px;
}

.back-top{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#8eeeff;
    text-decoration:none;
    margin-bottom:14px;
    font-size:14px;
    text-shadow:0 0 10px rgba(0,255,255,.35);
    transition:.2s ease;
}

.back-top:hover{
    color:#00ffcc;
    transform:translateX(-2px);
}

.terminal{
    border-radius:14px;
    overflow:hidden;
    background:#071014;
    border:1px solid rgba(0,255,200,.28);
    box-shadow:
        0 0 45px rgba(0,255,190,.12),
        inset 0 0 30px rgba(0,255,190,.04);
}

.term-bar{
    height:42px;
    background:linear-gradient(90deg, #111b20, #18272d, #10171b);
    display:flex;
    align-items:center;
    padding:0 14px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.dots{
    display:flex;
    gap:8px;
    margin-right:14px;
}

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
}

.red{background:#ff5f56}
.yellow{background:#ffbd2e}
.green{background:#27c93f}

.term-title{
    color:#b9d7d2;
    font-size:13px;
}

.console{
    padding:26px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        #050b0e;
    background-size:22px 22px;
}

.prompt{
    color:#00ffcc;
    margin-bottom:10px;
    font-size:15px;
}

.prompt span{
    color:#58a6ff;
}

h1{
    color:#e5fff8;
    font-size:24px;
    margin-bottom:8px;
    text-shadow:0 0 12px rgba(0,255,190,.3);
}

.desc{
    color:#8fbdb4;
    margin-bottom:22px;
    font-size:14px;
}

.form-box{
    animation:terminalSwitch .35s ease;
}

@keyframes terminalSwitch{
    from{
        opacity:0;
        transform:translateY(12px);
        filter:blur(2px);
    }

    to{
        opacity:1;
        transform:translateY(0);
        filter:blur(0);
    }
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.full-width{
    grid-column:1 / -1;
}

label{
    display:block;
    color:#00ffcc;
    font-size:13px;
    margin-bottom:6px;
}

.input-line{
    position:relative;
    margin-bottom:14px;
}

.input-line::before{
    content:"$";
    position:absolute;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#00ffcc;
    opacity:.9;
}

input{
    width:100%;
    padding:13px 14px 13px 34px;
    background:#020608;
    color:#dfffee;
    border:1px solid rgba(0,255,204,.25);
    border-radius:8px;
    outline:none;
    font-family:inherit;
    box-shadow:inset 0 0 12px rgba(0,255,204,.04);
    transition:.2s ease;
}

input:focus{
    border-color:#00ffcc;
    box-shadow:
        0 0 12px rgba(0,255,204,.16),
        inset 0 0 12px rgba(0,255,204,.05);
}

.phone-row{
    display:grid;
    grid-template-columns:78px 1fr;
    gap:10px;
}

.prefix{
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#020608;
    color:#00ffcc;
    border:1px solid rgba(0,255,204,.25);
    border-radius:8px;
}

.help{
    color:#6fa69a;
    font-size:12px;
    margin:-5px 0 14px;
    line-height:1.5;
}

.submit{
    width:100%;
    padding:14px;
    margin-top:6px;
    border:none;
    border-radius:8px;
    font-family:inherit;
    font-weight:bold;
    cursor:pointer;
    background:linear-gradient(90deg, #00ffcc, #00d48f);
    color:#02110d;
    box-shadow:0 0 18px rgba(0,255,204,.18);
    transition:.2s ease;
}

.submit:hover{
    filter:brightness(1.1);
    transform:translateY(-1px);
}

.switch-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:20px;
    padding-top:18px;
    border-top:1px dashed rgba(0,255,204,.25);
}

.switch-buttons button{
    padding:13px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.08);
    font-family:inherit;
    font-weight:bold;
    cursor:pointer;
    transition:.2s ease;
}

.btn-register{
    background:#252d33;
    color:#d7dee3;
}

.btn-login{
    background:linear-gradient(90deg, #00ff9c, #5dffbf);
    color:#03110a;
}

.switch-buttons button:hover{
    transform:translateY(-2px);
}

.error,
.success{
    padding:12px;
    border-radius:8px;
    margin-bottom:16px;
    font-size:13px;
}

.error{
    background:rgba(255,40,40,.08);
    color:#ff9b9b;
    border:1px solid rgba(255,80,80,.25);
}

.success{
    background:rgba(0,255,156,.08);
    color:#9dffd1;
    border:1px solid rgba(0,255,156,.25);
}

.hidden{
    display:none;
}

@media(max-width:700px){
    .form-grid{
        grid-template-columns:1fr;
    }

    .console{
        padding:20px;
    }

    .phone-row{
        grid-template-columns:70px 1fr;
    }

    h1{
        font-size:20px;
    }
}