:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --muted: #6b7280;
    --accent: #0071e3;
    --shadow-1: 0 4px 12px rgba(17, 24, 39, 0.08);
    --shadow-2: 0 6px 20px rgba(17, 24, 39, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui;
}

body {
    background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui;
}

.container {
    background: var(--panel);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    width: 90%;
    max-width: 400px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111;
}

.step {
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.qr-code {
    margin: 24px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.input-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.code-input {
    letter-spacing: 0.5em;
    font-size: 18px;
    border: 1.5px solid #4B5563;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    background-color: var(--panel);
    color: #111;
    font-weight: 500;
    width: 200px;
    transition: all 0.2s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1), var(--shadow-1);
}

.error {
    color: #DC2626;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

button {
    margin-top: 24px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4B5563;
    background: transparent;
    border: 1.5px solid #4B5563;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-1);
    white-space: nowrap;
    min-width: fit-content;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

button:hover:not(:disabled) {
    background: #9CA3AF;
    color: white;
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(75, 85, 99, 0.15);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: transparent;
    color: #9CA3AF;
    border-color: #9CA3AF;
    box-shadow: none;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3), 0 2px 8px rgba(0, 122, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button inner highlight for Apple-like effect */
button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 24px;
        margin: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .code-input {
        width: 160px;
        font-size: 16px;
        letter-spacing: 0.3em;
    }
    
    button {
        padding: 8px 12px;
        font-size: 12px;
    }
}