:root {
    --primary: #00d2ff;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

.app-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at top right, rgba(58, 123, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 210, 255, 0.1) 0%, transparent 50%);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo i {
    margin-right: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 { font-size: 1.5rem; margin-left: 0.5rem; }

.login-hint { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.login-input { 
    width: 100%; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: rgba(255, 255, 255, 0.03); 
    color: white;
    outline: none;
    transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--primary); }
.login-btn { width: 100%; margin-top: 1rem; }
.logout-link { margin-top: 2rem; font-size: 0.8rem; }
.logout-link a { color: var(--text-secondary); text-decoration: none; }
.logout-link a:hover { color: var(--error); }

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px var(--success);
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.state-view {
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.no-news-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card {
    text-align: left;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.card-body {
    padding: 2rem 1.5rem;
}

.card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.ref-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.time-text { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i { margin-right: 8px; }

.btn-primary { background: var(--primary-gradient); color: white; }
.btn-secondary { background: rgba(248, 250, 252, 0.1); color: var(--text-primary); }

.btn:active { transform: scale(0.95); }

.otp-code-container {
    background: rgba(0, 210, 255, 0.1);
    border: 2px dashed var(--primary);
    padding: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    text-align: center;
}

.progress-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 1s linear;
}

.hidden { display: none !important; }

footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fingerprint-info {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.fingerprint-info i { margin-right: 6px; }

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

@media (max-width: 480px) {
    .app-container { padding: 1.5rem; }
    .otp-code-container { font-size: 2.2rem; }
}
