*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.card {
    background: #252526;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
}

.card-wide { max-width: 520px; }

.logo { text-align: center; margin-bottom: 28px; }

.logo h1 {
    font-size: 22px;
    font-weight: 500;
    color: #4E9EDB;
    letter-spacing: .5px;
}

.logo p { font-size: 13px; color: #808080; margin-top: 4px; }

.field { margin-bottom: 18px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #3E3E42;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s;
    outline: none;
    background: #3C3C3C;
    color: #D4D4D4;
}

input:focus, textarea:focus { border-color: #4E9EDB; }

textarea { resize: vertical; min-height: 120px; }

.error {
    background: #fdecea;
    color: #c62828;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.warning {
    background: #fff3e0;
    color: #bf360c;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.hint { font-size: 12px; color: #808080; margin-bottom: 18px; line-height: 1.5; }

button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: #4E9EDB;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    margin-top: 4px;
}

button[type="submit"]:hover { background: #3A8CC7; }

.footer-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #808080;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a { color: #4E9EDB; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.qr-container { text-align: center; margin: 16px 0; }

.manual-key {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    word-break: break-all;
    background: #3C3C3C;
    padding: 10px;
    border-radius: 4px;
    color: #D4D4D4;
    margin-bottom: 16px;
    text-align: center;
}

.code-input {
    font-size: 22px;
    font-family: 'Roboto Mono', monospace, inherit;
    letter-spacing: 6px;
    text-align: center;
}
