:root {
    --bg-color: #050505;
    --card-bg: #0f0f12;
    --primary: #9d00ff;
    --primary-glow: rgba(157, 0, 255, 0.5);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --error: #ff3366;
    --success: #00ffaa;
    --input-bg: #1a1a1f;
    --border-color: #2a2a32;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text-main);
    line-height: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lock-icon {
    font-size: 1.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

h1 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 300;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 0 20px rgba(157, 0, 255, 0.05);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-dim);
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 15px 15px 45px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.2);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 1.2em;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.code-display-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    animation: slideUp 0.5s ease-out;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px dashed var(--border-color);
}

.2fa-code {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 5px;
    text-shadow: 0 0 15px var(--primary-glow);
    font-variant-numeric: tabular-nums;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.copy-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.timer-container {
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    width: 100%;
    transition: width 1s linear;
}

.timer-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

#countdown {
    color: var(--text-main);
    font-weight: 700;
}

footer {
    margin-top: 30px;
    text-align: center;
}

footer p {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.by-store {
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: #1a1a1f;
    border: 1px solid var(--primary);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast.active {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: var(--success);
}

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

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

/* Responsividade */
@media (max-width: 480px) {
    .card {
        padding: 25px;
    }
    .2fa-code {
        font-size: 2rem;
    }
}
