/* Basic Reset & Defaults */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {

    /* Using VT323 for a pixelated look, fallback to Share Tech Mono or generic monospace */

    font-family: 'VT323', 'Share Tech Mono', monospace;

    background-color: #0a0a0a; /* Dark background */

    color: #00ff00; /* Bright green text */

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

    overflow: hidden; /* Hide scrollbars from potential background effects */

    /* Hacker Background Image */

    background-image: url('https://media.giphy.com/media/AOSwwqVjNZlDO/giphy.gif'); /* Example Matrix GIF */

    /* Or use a static image: */

    /* background-image: url('your-hacker-background.jpg'); */

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    position: relative; /* Needed for overlay */

}

/* Background Overlay for Readability */

#background-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */

    z-index: 0;

}

/* Terminal Window Styling */

.terminal-window {

    width: 90%;

    max-width: 650px;

    background-color: rgba(10, 25, 10, 0.85); /* Dark green, slightly transparent */

    border: 2px solid #00ff00;

    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(0, 255, 0, 0.3);

    border-radius: 5px;

    overflow: hidden;

    position: relative; /* Ensure it's above the overlay */

    z-index: 1;

    animation: fadeInTerminal 1s ease-out;

}

@keyframes fadeInTerminal {

    from { opacity: 0; transform: translateY(-20px); }

    to { opacity: 1; transform: translateY(0); }

}

.terminal-header {

    background-color: #003300; /* Darker green header */

    padding: 8px 12px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #00ff00;

    color: #ffffff;

    font-size: 1.1em;

    text-shadow: 0 0 5px #00ff00;

}

.terminal-title {

    letter-spacing: 2px;

}

.terminal-controls span {

    display: inline-block;

    width: 12px;

    height: 12px;

    margin-left: 5px;

    border-radius: 50%;

    cursor: pointer;

}

.control-btn.minimize { background-color: #ffbd2e; border: 1px solid #e1a11a;}

.control-btn.maximize { background-color: #27c93f; border: 1px solid #1aab2a;}

.control-btn.close { background-color: #ff5f57; border: 1px solid #e2453c;}

.terminal-body {

    padding: 20px;

    min-height: 300px; /* Give some space */

}

/* Hacker Typer Output Area */

#hacker-typer-output {

    background-color: rgba(0, 0, 0, 0.5);

    padding: 10px;

    margin-bottom: 20px;

    border: 1px dashed #00ff00;

    height: 80px; /* Fixed height */

    overflow-y: auto; /* Scroll if text exceeds height */

    font-size: 1.2em;

    line-height: 1.4;

    white-space: pre-wrap; /* Preserve whitespace and newlines */

    word-wrap: break-word; /* Break long words */

    text-shadow: 0 0 3px #00ff00;

    display: flex;
    align-items: center; /* Dikey hizalama */
}

.prompt {

    color: #00cc00; /* Slightly different green for prompt */

}

/* Blinking Cursor */

.cursor {

    display: inline-block;

    background-color: #00ff00;

    width: 10px;

    animation: blink 1s step-end infinite;

    margin-left: 3px;

}

@keyframes blink {

    from, to { background-color: transparent; }

    50% { background-color: #00ff00; }

}

/* Form Container and Toggles */

.form-toggle {

    margin-bottom: 20px;

    text-align: center;

}

.form-toggle button {

    background: none;

    border: 1px solid #00ff00;

    color: #00ff00;

    padding: 8px 15px;

    margin: 0 5px;

    cursor: pointer;

    font-family: inherit;

    font-size: 1em;

    transition: all 0.3s ease;

    text-transform: uppercase;

}

.form-toggle button.active,

.form-toggle button:hover {

    background-color: #00ff00;

    color: #0a0a0a;

    box-shadow: 0 0 10px #00ff00;

}

/* Form Styling */

form {

    display: none; /* Hidden by default */

    flex-direction: column;

    gap: 15px;

    animation: formFadeIn 0.5s ease;

}

form.active-form {

    display: flex; /* Show active form */

}

@keyframes formFadeIn {

     from { opacity: 0; }

     to { opacity: 1; }

}

form h2 {

    text-align: center;

    margin-bottom: 10px;

    color: #ffffff;

    text-shadow: 0 0 8px #00ff00;

    letter-spacing: 1px;

}

.input-group {

    display: flex;

    flex-direction: column;

    gap: 5px;

}

label {

    font-size: 1.1em;

    color: #00ff00;

    text-shadow: 0 0 3px #00ff00;

}

input[type="text"],

input[type="password"],

input[type="email"] {

    background-color: rgba(0, 0, 0, 0.7);

    border: 1px solid #00cc00;

    color: #00ff00;

    padding: 10px;

    font-family: inherit;

    font-size: 1.1em;

    outline: none;

    caret-color: #00ff00; /* Cursor color inside input */

    transition: border-color 0.3s, box-shadow 0.3s;

}

input[type="text"]::placeholder,

input[type="password"]::placeholder,

input[type="email"]::placeholder {

    color: #009900; /* Darker green for placeholder */

    opacity: 0.7;

}

input[type="text"]:focus,

input[type="password"]:focus,

input[type="email"]:focus {

    border-color: #00ff00;

    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);

}

form button[type="submit"] {

    background-color: #00ff00;

    color: #0a0a0a;

    border: none;

    padding: 12px;

    font-family: inherit;

    font-size: 1.2em;

    cursor: pointer;

    transition: background-color 0.3s, box-shadow 0.3s;

    margin-top: 10px;

    text-transform: uppercase;

    font-weight: bold;

    letter-spacing: 1px;

    text-shadow: none;

}

form button[type="submit"]:hover {

    background-color: #33ff33; /* Lighter green on hover */

    box-shadow: 0 0 15px #00ff00;

}

/* Message Area */

.message {

    min-height: 20px; /* Reserve space */

    margin-top: 10px;

    text-align: center;

    font-size: 1.1em;

    font-weight: bold;

    text-shadow: 0 0 5px currentColor; /* Glow effect based on text color */

}

.message.success {

    color: #00ff00; /* Green for success */

}

.message.error {

    color: #ff4444; /* Red for error */

}

.message.processing {

    color: #ffff00; /* Yellow for processing */

}

/* Responsive adjustments */

@media (max-width: 600px) {

    .terminal-window {

        width: 95%;

        margin-top: 20px;

        margin-bottom: 20px;

    }

    .terminal-body {

        padding: 15px;

    }

    #hacker-typer-output {

        font-size: 1em;

        height: 50px;

    }

    form h2 {

        font-size: 1.2em;

    }

    label, input, form button[type="submit"] {

        font-size: 1em;

    }

}