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

/* ── Base ── */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    font-family: 'Segoe UI', sans-serif;
    color: #eee;
    gap: 2rem;
}

h1 {
    color: #e94560;
}

p {
    color: #888;
    font-size: 1rem;
}

/* ── Card ── */
.card {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    gap: 0;
}

.card h1 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
}

/* ── Form elements ── */
label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.3rem;
    margin-top: 1rem;
}

input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: #0f3460;
    color: #eee;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #e94560;
}

/* ── Buttons ── */
button, .btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover:not(:disabled), .btn:hover {
    background: #c73652;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.full-width {
    width: 100%;
    margin-top: 1.75rem;
    padding: 0.75rem;
}

button.secondary {
    background: #0f3460;
    font-weight: normal;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    width: auto;
    margin-top: 0.5rem;
}

button.secondary:hover {
    background: #1a4a8a;
}

/* ── Messages ── */
.message {
    margin-top: 1.25rem;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
    word-break: break-all;
}

.message.error {
    background: #3d0f1a;
    border: 1px solid #e94560;
    color: #e94560;
}

.message.success {
    background: #0f3d1a;
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

/* ── Token box ── */
.token-box {
    margin-top: 1.25rem;
    padding: 0.65rem 0.9rem;
    background: #0f1e3d;
    border: 1px solid #0f3460;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #aaa;
    word-break: break-all;
    display: none;
}

.token-box span {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.4rem;
}
