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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 14px;
    color: #666666;
}

.step-indicator {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.step-description {
    font-size: 13px;
    color: #666666;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #1a1a1a;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
}

.form-group input::placeholder {
    color: #a0aec0;
}

.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 12px;
}

.password-requirements ul {
    margin: 8px 0 0 20px;
    color: #666666;
}

.password-requirements li {
    margin: 4px 0;
}

.password-requirements li.valid {
    color: #48bb78;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 6px;
}

.qr-code {
    max-width: 200px;
    height: auto;
    margin: 0 auto 16px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.secret-key {
    font-family: monospace;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    word-break: break-all;
}

.totp-instructions {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.totp-instructions ol {
    margin: 12px 0 0 20px;
}

.totp-instructions li {
    margin: 8px 0;
}

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 45px !important;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 0 !important;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #f7931e;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #f7fafc;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: #edf2f7;
}

.forgot-password {
    text-align: center;
    margin-top: 16px;
}

.forgot-password a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #f7931e;
}

.info-message {
    padding: 12px;
    background: #fff5f2;
    border: 1px solid #ffd4c4;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ff6b35;
    text-align: center;
}

.error-message {
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #c53030;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: #999999;
    font-size: 13px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .otp-input {
        width: 40px !important;
        height: 45px;
        font-size: 18px;
    }
}
