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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--secondary, #f4f6f8);
    color: var(--text, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
    align-self: center;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary, #00b6ea);
    text-align: center;
}

h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text, #1a1a1a);
    text-align: center;
    opacity: .75;
}

.subtitle {
    font-size: .9rem;
    color: var(--text, #555);
    text-align: center;
    line-height: 1.5;
    opacity: .8;
}

form { display: flex; flex-direction: column; gap: 12px; }

label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text, #444);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text, #1a1a1a);
    outline: none;
    transition: border-color .2s;
}
input[type="email"]:focus,
input[type="text"]:focus { border-color: var(--primary, #00b6ea); }

input[type="text"][inputmode="numeric"] {
    letter-spacing: .3em;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

button[type="submit"] {
    padding: 11px;
    background: var(--primary, #00b6ea);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
button[type="submit"]:hover { opacity: .88; }

.error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: .85rem;
}

.instructions {
    font-size: .78rem;
    color: var(--text, #555);
    opacity: .55;
    text-align: center;
    line-height: 1.5;
    border-top: 1px solid currentColor;
    padding-top: 12px;
    margin-top: 4px;
}

.back-link {
    text-align: center;
    font-size: .85rem;
}
.back-link a {
    color: var(--primary, #00b6ea);
    text-decoration: none;
}
.back-link a:hover { text-decoration: underline; }
