:root {
  --bg-base: #0f0f0f;
  --bg-surface: #171717;
  --bg-elevated: #1f1f1f;
  --bg-hover: #282828;
  --bg-active: #2e2e2e;

  --border: #2a2a2a;
  --border-subtle: #222222;

  --text-primary: #f0f0f0;
  --text-secondary: #9a9a9a;
  --text-muted: #5a5a5a;

  --accent: #5b9a3a;
  --accent-hover: #6ab043;
  --accent-dim: #2d4a1d;

  --red: #c0392b;
  --font-sans: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    width: 100%;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-container {
    margin-bottom: 2rem;
}

.brand-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 25px rgba(91, 154, 58, 0.4));
    animation: pulse-glow 4s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 15px rgba(91, 154, 58, 0.3)); transform: scale(0.98); }
    100% { filter: drop-shadow(0 0 35px rgba(91, 154, 58, 0.7)); transform: scale(1.02); }
}

.headline {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
    font-weight: 400;
    max-width: 85%;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.input-group {
    display: flex;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(91, 154, 58, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
}

#email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

#email-input::placeholder {
    color: var(--text-muted);
}

#submit-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

#submit-btn:hover {
    background-color: var(--accent-hover);
}

#submit-btn:active {
    transform: scale(0.96);
}

#submit-btn:disabled {
    background-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.message.visible {
    opacity: 1;
    transform: translateY(0);
}

.message.hidden {
    display: none;
}

.message.success {
    background-color: rgba(91, 154, 58, 0.1);
    color: var(--accent-hover);
    border: 1px solid rgba(91, 154, 58, 0.2);
}

.message.error {
    background-color: rgba(192, 57, 43, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 10;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .headline {
        font-size: 2rem;
    }
    .subtitle {
        max-width: 100%;
        font-size: 1rem;
    }
    .input-group {
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .input-group:focus-within {
        box-shadow: none;
    }
    #email-input {
        background-color: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 16px 20px;
    }
    #email-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(91, 154, 58, 0.25);
    }
    #submit-btn {
        width: 100%;
        border-radius: 12px;
        padding: 16px;
    }
}