/* Import a clean, modern monospaced font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

body {
    font-family: 'Roboto Mono', Courier, monospace;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #000000;
    color: #00FF00;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 25px;
    border: 2px solid #00FF00;
    background-color: #0a0a0a;
    box-shadow: 0 0 20px #00FF00;
    border-radius: 10px;
}

h1 {
    text-align: center;
    border-bottom: 1px solid #00FF00;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

h1 .cursor {
    display: inline-block;
    width: 12px;
    height: 1.2rem;
    background-color: #00FF00;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

h2 {
    border-bottom: 1px solid #00FF00;
    padding-bottom: 5px;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
}

p {
    margin-top: 10px;
    text-align: center;
}

input[type="email"], input[type="password"], input[type="text"], textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #00FF00;
    color: #32CD32;
    padding: 15px;
    font-family: 'Roboto Mono', Courier, monospace;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 5px;
}

/* --- UPDATED: Ghost Button Style --- */
.styled-button {
    background-color: transparent; /* Transparent by default */
    color: #00FF00; /* Green text */
    border: 2px solid #00FF00; /* Green border */
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Roboto Mono', Courier, monospace;
    font-size: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    display: block; /* Changed to block for better spacing */
    width: 100%;
    box-sizing: border-box;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center; /* Ensure text is centered */
}

.styled-button:hover, .styled-button:active {
    background-color: #00FF00; /* Fill on hover/press */
    color: #000000; /* Black text on hover/press */
}

#status-message, #send-status {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #ADFF2F;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-item {
    background-color: #0c0c0c;
    border: 1px dashed #00FF00;
    padding: 15px;
    border-radius: 5px;
}

.message-feed {
    height: 300px;
    overflow-y: scroll;
    padding: 10px;
    border: 1px solid #00FF00;
    background-color: #1a1a1a;
    border-radius: 5px;
    text-align: left;
}

/* --- NEW: Specific Vertical Layout for Forms --- */
.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh; /* Ensure it takes up vertical space */
}

/* Responsive design for larger screens */
@media (min-width: 768px) {
    body {
        padding: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .message-feed {
        height: 400px;
    }

    .form-container {
        min-height: auto; /* Revert vertical height on desktop */
    }
}
