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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: #16213e;
    border-radius: 16px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-info {
    margin-bottom: 20px;
    padding: 12px;
    background: #0f3460;
    border-radius: 8px;
    text-align: center;
}

.user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.login-btn, .logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1ee2bb;
    color: #16213e;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.login-btn:hover, .logout-btn:hover {
    background: #45e9ad;
}

.logout-btn {
    margin-top: 8px;
    background: #e94560;
    color: #fff;
}

.logout-btn:hover {
    background: #ff6b81;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #1ee2bb;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0f3460;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    outline: none;
}

select:focus {
    border-color: #45e9ad;
}

.code-section {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.code-section.active {
    display: block;
}

.totp-code {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    font-family: "Courier New", monospace;
    color: #fff;
    margin: 20px 0 16px;
}

.timer-bar-container {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.timer-bar {
    height: 100%;
    background: #e94560;
    border-radius: 3px;
    transition: width 1s linear;
}

.timer-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}