/* === Container === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #000 60%, #001a00 100%);
    font-family: 'Share Tech Mono', monospace;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Grid background overlay */
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: moveGrid 20s linear infinite;
    z-index: 0;
}

/* Matrix canvas layer */
.matrix-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

/* === Auth Box === */
.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2.5rem;
    border: 1px solid #00ff66;
    border-radius: 12px;
    color: #00ff66;
    box-shadow: 0 0 25px rgba(0, 255, 100, 0.25);
    position: relative;
    z-index: 2;
    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

.auth-box h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #00ff66;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.6);
    letter-spacing: 2px;
    text-align: center; /* biar rata tengah */
}

/* === Text Terminal Style === */
.terminal-text,
.auth-box p {
    color: #00ff66;
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 1.5rem;
    text-align: center; /* BIAR RATA TENGAH */
}

/* === Input Cyber Style === */
.input-cyber {
    background: rgba(0, 30, 0, 0.7) !important;
    border: 1px solid rgba(0, 255, 100, 0.3) !important;
    color: #00ff99 !important;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.input-cyber::placeholder {
    color: #00ff66aa;
    font-style: italic;
}

.input-cyber:focus {
    border-color: #00ffcc !important;
    box-shadow: 0 0 12px rgba(0, 255, 150, 0.4) !important;
    background: rgba(0, 50, 20, 0.9) !important;
}

/* === Cyber Button === */
.cyber-button {
    display: block;
    width: 100%;
    max-width: 280px;      /* biar gak terlalu panjang */
    margin: 0 auto 1.2rem; /* auto center + kasih jarak ke bawah */
    background: linear-gradient(135deg, #003300, #006600);
    border: 1px solid #00ff66;
    color: #00ff66;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.7rem;       
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;    
    text-align: center;
    letter-spacing: 1px;
}

.cyber-button:hover {
    background: linear-gradient(135deg, #004d1a, #00b359);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.5),
                0 0 30px rgba(0, 255, 180, 0.3);
    transform: translateY(-2px);
}

/* Buat svg dihapus */
.cyber-button svg {
    display: none !important;
}

/* === Animations === */
@keyframes glowPulse {
    from {
        box-shadow: 0 0 18px rgba(0, 255, 120, 0.15);
    }
    to {
        box-shadow: 0 0 28px rgba(0, 255, 120, 0.35);
    }
}

@keyframes moveGrid {
    from { transform: translate(0, 0); }
    to { transform: translate(-25px, -25px); }
}

/* === Label Form === */
.auth-box label {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
    color: #00ff66;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* === Input Box === */
.auth-box input,
.auth-box select {
    width: 100%;
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #00ff99;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.25s ease;
}

.auth-box input::placeholder {
    color: #00ff66aa;
    font-style: italic;
}

.auth-box input:focus,
.auth-box select:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.4);
    outline: none;
}

/* === Footer (Sudah punya akun) === */
.auth-footer {
    text-align: center;   /* rata tengah */
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 0.5rem;
}

.auth-footer a {
    color: #8a5cff;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #b280ff;
}
