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

:root {
    --primary-color: #ff4d4d;
    --accent-red: #ff6b6b;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --card-bg: rgba(20, 20, 20, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: transparent;
    --success-color: #10b981;
    --error-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header */
.header {
    width: 100%;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    max-width: 100%;
    height: auto;
}

/* Main Container */
.container {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    text-align: center;
    width: 100%;
}

/* Heading */
.heading {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

/* Tagline */
.tagline {
    font-size: 1.125rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Signup Card */
.signup-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        var(--card-bg);
    background-size: 20px 20px, 20px 20px, 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Form */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="email"] {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Courier New', monospace;
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

input[type="email"]:focus {
    border-color: var(--text-secondary);
}

button[type="submit"] {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

button[type="submit"]:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: var(--primary-color);
}

/* Observability-Themed Loader */
.loader-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.15rem;
    height: 14px;
}

.signal-bars .bar {
    width: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: signalPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 4px var(--primary-color);
}

.signal-bars .bar:nth-child(1) {
    height: 30%;
    animation-delay: 0s;
}

.signal-bars .bar:nth-child(2) {
    height: 50%;
    animation-delay: 0.1s;
}

.signal-bars .bar:nth-child(3) {
    height: 80%;
    animation-delay: 0.2s;
}

.signal-bars .bar:nth-child(4) {
    height: 60%;
    animation-delay: 0.3s;
}

.signal-bars .bar:nth-child(5) {
    height: 40%;
    animation-delay: 0.4s;
}

.loader-text {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.status-text {
    color: var(--primary-color);
    font-weight: 500;
}

.dots {
    display: inline-flex;
}

.dots span {
    animation: dotBlink 1.4s infinite;
    color: var(--primary-color);
}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes signalPulse {
    0%, 100% {
        height: 30%;
        opacity: 0.4;
    }
    50% {
        height: 100%;
        opacity: 1;
    }
}

@keyframes dotBlink {
    0%, 20% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    display: none;
}

.message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .heading {
        font-size: 4.5rem;
    }

    .tagline {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .heading {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .signup-card {
        padding: 2rem 1.5rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .container {
        padding: 1.5rem;
    }

    .vibe-check {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .heading {
        font-size: 2rem;
    }

    .signup-card {
        padding: 1.5rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content > * {
    animation: fadeIn 0.6s ease-out forwards;
}

.heading {
    animation-delay: 0.1s;
}

.tagline {
    animation-delay: 0.2s;
}

.signup-card {
    animation-delay: 0.3s;
}
