html, body {
    /* min-height (not height:100%) so the background covers the full scrollable
       area instead of being clamped to a single viewport. */
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6vh 1rem 2rem;
    box-sizing: border-box;
}

.landing img {
    width: 300px;
    display: block;
}

.action {
    margin-top: 2rem;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.action-title {
    margin: 0 0 1rem;
    color: #1F5A52;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.field-label {
    margin: 0.5rem 0 0.25rem;
    color: #1F5A52;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-input {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    border: 2px solid #2E7C6E;
    border-radius: 12px;
    outline: none;
    color: #1F5A52;
    font-family: inherit;
}

.text-input:focus,
.code-input:focus {
    border-color: #1F5A52;
    box-shadow: 0 0 0 3px rgba(46, 124, 110, 0.18);
}

.code-input {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.15em;
    padding: 1rem;
    border: 2px solid #2E7C6E;
    border-radius: 12px;
    outline: none;
    text-transform: uppercase;
    color: #1F5A52;
}

.code-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-teal {
    background-color: #2E7C6E;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.05s ease-in;
    font-family: inherit;
}

.btn-teal:hover  { background-color: #246357; }
.btn-teal:active { transform: translateY(1px); }
.btn-teal:disabled {
    background-color: #9bbdb6;
    cursor: not-allowed;
    transform: none;
}

.btn-link-muted {
    background: none;
    border: none;
    color: #2E7C6E;
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0.25rem;
}

.form-error {
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f4c7c3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.hidden { display: none !important; }
