* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

h2 {
    color: #444;
    margin: 20px 0 15px;
    font-size: 1.2rem;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button:hover {
    background-color: #3367d6;
}


.totp-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    position: relative;
}

.totp-code {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 5px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.timer-container {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-bar {
    height: 100%;
    background-color: #4285f4;
    border-radius: 3px;
    transition: width 1s linear;
}

.timer-text {
    font-size: 14px;
    color: #666;
}


.qrcode-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#qrcode {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qrcode-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .totp-code {
        font-size: 32px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
