/* ======================
   ULTIMATE RETRO STYLING
   ====================== */

/* CRT Monitor Effect */
body {
    background-color: #000;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    color: #fff;
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, 
        rgba(255, 0, 0, 0.06), 
        rgba(0, 255, 0, 0.02), 
        rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Scanlines */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0, 255, 0, 0.1) 3px,
        rgba(0, 255, 0, 0.1) 6px
    );
    pointer-events: none;
    z-index: 1001;
}

/* Main Container */
.container {
    width: 800px;
    margin: 20px auto;
    background: #000;
    border: 8px ridge #ff00ff;
    box-shadow: 
        0 0 0 8px #00ffff,
        0 0 20px 10px rgba(255, 0, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* Rainbow Header */
.header {
    background: linear-gradient(
        to right,
        #ff0000,
        #ff9900,
        #ffff00,
        #00ff00,
        #0099ff,
        #6633ff
    );
    padding: 15px;
    border-bottom: 8px dotted #fff;
    text-align: center;
}

.header h1 {
    font-size: 48px;
    color: #000;
    margin: 10px 0;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 4px;
    text-shadow: 
        3px 3px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff;
    animation: colorCycle 10s infinite;
}

@keyframes colorCycle {
    0% { color: #ff0000; }
    20% { color: #ffff00; }
    40% { color: #00ff00; }
    60% { color: #00ffff; }
    80% { color: #ff00ff; }
    100% { color: #ff0000; }
}

/* Blinking Tagline */
.tagline {
    color: #000;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Navigation - 3D Bevel Buttons */
.nav {
    background: #000;
    padding: 10px;
    border-top: 4px solid #00ffff;
    border-bottom: 4px solid #ff00ff;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav li {
    display: inline-block;
    margin: 0 5px;
    transform: skew(-15deg);
}

.nav a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to bottom, #ff00ff, #cc00cc);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border: 3px outset #ff66ff;
    border-radius: 0;
    text-shadow: 1px 1px 2px #000;
    transform: skew(15deg);
    transition: all 0.3s;
}

.nav a:hover {
    background: linear-gradient(to bottom, #ff66ff, #ff00ff);
    border-style: inset;
    box-shadow: 0 0 10px #ff00ff;
}

/* Content Area */
.content {
    padding: 20px;
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    border: 2px dotted #00ffff;
    margin: 10px;
}

/* Retro Counter */
.counter {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 10px 20px;
    display: inline-block;
    border: 3px outset #0f0;
    margin: 10px 0;
    text-shadow: 0 0 5px #0f0;
    position: relative;
    overflow: hidden;
}

.counter::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 255, 0, 0.1) 50%,
        transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Animated Marquee */
.marquee {
    background: #000;
    color: #ff0;
    font-weight: bold;
    padding: 10px;
    margin: 20px 0;
    border: 3px dashed #ff0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Feature Boxes */
.feature-box {
    background: #111;
    border: 3px outset #00ffff;
    padding: 15px;
    margin: 20px 0;
    color: #0f0;
}

.feature-box h3 {
    color: #ff00ff;
    border-bottom: 2px dotted #ff00ff;
    padding-bottom: 5px;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
}

/* Forms */
input, textarea, select {
    background: #000;
    color: #0f0;
    border: 2px outset #00ffff;
    padding: 8px;
    font-family: 'Courier New', monospace;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

button {
    background: linear-gradient(to bottom, #ff00ff, #cc00cc);
    color: #fff;
    border: 3px outset #ff66ff;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Impact', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

button:hover {
    background: linear-gradient(to bottom, #ff66ff, #ff00ff);
    border-style: inset;
    box-shadow: 0 0 10px #ff00ff;
}

/* Footer */
.footer {
    background: #000;
    color: #0f0;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-top: 4px solid #ff00ff;
}

.footer a {
    color: #00ffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    animation: colorCycle 5s infinite;
}

/* Special Elements */
.construction {
    background: #000;
    color: #ff0;
    border: 3px dashed #ff0;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Retro Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 3px outset #00ffff;
}

th {
    background: #ff00ff;
    color: #000;
    padding: 10px;
    text-align: left;
    font-family: 'Impact', sans-serif;
}

td {
    padding: 10px;
    border: 1px solid #00ffff;
    color: #0f0;
}

tr:nth-child(even) {
    background: rgba(0, 255, 255, 0.1);
}

/* Glowing Text */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff00ff, 0 0 20px #ff00ff;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
    }
}

/* Retro Form Styling */
.retro-form-container {
    background: #000;
    border: 4px ridge #ff00ff;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    color: #0f0;
    font-family: 'Courier New', monospace;
}

.retro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: #00ffff;
    font-weight: bold;
}

.retro-input {
    background: #000;
    color: #0f0;
    border: 2px outset #00ffff;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.retro-input:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.retro-button {
    background: linear-gradient(to bottom, #ff00ff, #cc00cc);
    color: #fff;
    border: 3px outset #ff66ff;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Impact', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    transition: all 0.3s;
}

.retro-button:hover {
    background: linear-gradient(to bottom, #ff66ff, #ff00ff);
    border-style: inset;
    box-shadow: 0 0 10px #ff00ff;
}

.retro-error {
    color: #ff0;
    background: #300;
    padding: 10px;
    border: 2px dashed #f00;
    margin-bottom: 15px;
    font-weight: bold;
}

.login-links {
    margin-top: 20px;
    border-top: 1px dotted #00ffff;
    padding-top: 15px;
}

.login-links a {
    color: #00ffff;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
    color: #ff00ff;
}