@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

html, body {
    min-height: 100vh;
    background: #0c0c0c;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    color: #d0c8ff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(115, 102, 255, 0.05) 2px,
        rgba(115, 102, 255, 0.05) 4px
    );
    animation: scan 12s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.login-container {
    background: #161616;
    border: 1px solid #7366ff;
    border-radius: 10px;
    padding: 50px 60px;
    width: 460px;
    max-width: 92%;
    box-shadow: 0 10px 40px rgba(115, 102, 255, 0.2);
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.login-container.visible {
    opacity: 1;
}

.logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 35px;
    background: #1a1a1a;
    border: 3px solid #7366ff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(115, 102, 255, 0.4);
}

.logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    color: #ff6cab;
    letter-spacing: 3px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 108, 171, 0.6);
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 35px;
    color: #b0a0ff;
    letter-spacing: 1px;
    font-weight: 500;
}

.notice {
    font-size: 0.88rem;
    color: #9990ff;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 10px;
    opacity: 0.9;
}

label {
    display: block;
    text-align: left;
    margin: 20px 0 8px;
    font-size: 1rem;
    color: #7366ff;
    font-weight: 500;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid #7366ff;
    border-radius: 6px;
    color: #d0c8ff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    caret-color: #ff6cab;
}

input:focus {
    outline: none;
    border-color: #ff6cab;
    box-shadow: 0 0 15px rgba(255, 108, 171, 0.6);
    background: #111;
}

input::placeholder {
    color: #7366ff88;
}

button {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    background: linear-gradient(45deg, #7366ff, #ff6cab);
    border: none;
    border-radius: 6px;
    color: #000;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 0 20px rgba(115, 102, 255, 0.5);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 108, 171, 0.7);
    background: linear-gradient(45deg, #ff6cab, #7366ff);
}

.error-msg {
    color: #ff4444;
    font-size: 1rem;
    margin-top: 25px;
    opacity: 0;
    transition: opacity 0.5s;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.show-error {
    opacity: 1;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    10%,30%,50%,70%,90% { transform: translateX(-10px); }
    20%,40%,60%,80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.7s ease-in-out;
}

@media (max-width: 480px) {
    body { padding: 15px; }
    .login-container { padding: 40px 30px; }
    .logo { width: 140px; height: 140px; margin-bottom: 30px; }
    h1 { font-size: 1.7rem; }
    .notice { font-size: 0.85rem; }
    input, button { padding: 16px; font-size: 1.15rem; }
}