@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

:root {
    --primary-color: #00ff7f; /* Hacker green */
    --background-color: #0a0a0a; /* Very dark grey */
    --terminal-bg: #1a1a1a; /* Slightly lighter dark grey */
    --border-color: #2a2a2a;
    --text-color: #e0e0e0; /* Light grey text */
    --input-bg: #050505;
    --scanline-opacity: 0.05;
}

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

body {
    font-family: 'Source Code Pro', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Hide scrollbars caused by scanline */
}

.terminal-container {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px; /* Rounded corners */
    padding: 30px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.1), 0 0 5px rgba(0, 0, 0, 0.5);
    position: relative; /* Needed for scanline */
    overflow: hidden; /* Keep scanline contained */
}

/* Scanline Effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 51%
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    animation: scanlineAnim 10s linear infinite;
    opacity: var(--scanline-opacity);
}

@keyframes scanlineAnim {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; } /* Adjust speed by changing 100px */
}


.terminal-header,
.login-interface,
.terminal-footer {
    position: relative; /* Ensure content is above scanline */
    z-index: 2;
}

.terminal-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 15px;
}

.terminal-header h1 {
    color: var(--primary-color);
    font-size: 1.8em;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--primary-color);
}

.terminal-header p {
    color: var(--text-color);
    font-size: 0.9em;
    margin-top: 5px;
}

.login-interface {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Rounded inputs */
    color: var(--primary-color);
    font-family: inherit;
    font-size: 1em;
    caret-color: var(--primary-color); /* Cursor color */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(0, 255, 127, 0.4);
    font-style: italic;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.btn-access {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px; /* Rounded button */
    color: var(--primary-color);
    font-family: inherit;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-access:hover,
.btn-access:focus {
    background-color: var(--primary-color);
    color: var(--terminal-bg);
    box-shadow: 0 0 15px var(--primary-color);
    outline: none;
}

.terminal-footer {
    text-align: center;
    font-size: 0.8em;
    color: rgba(224, 224, 224, 0.6);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
} 