/* login_style.css - sama seperti yang sudah Anda perbaiki, tambahkan error box */
:root {
    --bg-blueprint: #4A5568; 
    --paper-main: #E2DDD3;   
    --paper-back: #EBE7DF;   
    --ink-dark: #374151;     
    --red-tape: #C55A5A;     
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-blueprint);
    font-family: 'Courier Prime', monospace;
    overflow: hidden;
    color: var(--ink-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s, height 0.3s;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.paper-stack {
    position: relative;
    background-color: var(--paper-back);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
    transform: rotate(-1.5deg);
}

.card-blueprint {
    background-color: var(--paper-main);
    padding: 35px 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(1.5deg);
    position: relative;
}

.tape-red {
    position: absolute;
    top: -5px;
    right: -25px;
    width: 110px;
    height: 32px;
    background-color: var(--red-tape);
    opacity: 0.85;
    transform: rotate(38deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 2px dashed rgba(0,0,0,0.1);
    border-right: 2px dashed rgba(0,0,0,0.1);
    z-index: 5;
}

.spec-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: bold;
    border-bottom: 1.5px solid var(--ink-dark);
    padding-bottom: 4px;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Special Elite', cursive;
    font-size: 1.8rem;
    margin: 0;
}

.subtitle {
    font-size: 0.75rem;
    margin-bottom: 25px;
    font-weight: bold;
    opacity: 0.8;
}

.form-group { 
    margin-bottom: 18px; 
}
.form-label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: bold; 
    margin-bottom: 6px; 
}

.input-wrapper {
    background-color: #ffffff;
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 35px 10px 10px;
    background: transparent;
    border: 2px solid var(--ink-dark);
    font-family: 'Courier Prime', monospace;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    box-shadow: 3px 3px 0 var(--ink-dark);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--ink-dark);
    font-size: 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--red-tape);
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--ink-dark);
    color: var(--paper-main);
    border: none;
    font-family: 'Special Elite', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.btn-login:hover {
    background-color: var(--red-tape);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.btn-login:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px rgba(0,0,0,0);
}

.btn-return {
    text-decoration: none;
    color: var(--ink-dark);
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 1px dashed var(--ink-dark);
    transition: all 0.2s;
    display: inline-block;
}

.btn-return:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--red-tape);
    border-style: solid;
}

.error-box {
    background: rgba(197, 90, 90, 0.1);
    border-left: 3px solid var(--red-tape);
    padding: 10px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: var(--red-tape);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-note {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--ink-dark);
    font-size: 0.65rem;
    line-height: 1.4;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .card-blueprint { 
        padding: 25px 20px; 
    }
    h1 { 
        font-size: 1.5rem; 
    }
    .form-control {
        padding: 8px 32px 8px 8px;
    }
    .password-toggle {
        right: 8px;
        font-size: 0.9rem;
    }
}