:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;
}

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

body {
    background: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Shisha effekti (Glassmorphism) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo .circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 16px 16px 16px 48px; /* Ikonka uchun chapdan joy qoldiramiz */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 10;
}

.input-icon-wrapper input:focus + i,
.input-icon-wrapper input:not(:placeholder-shown) + i {
    color: var(--primary);
}

.code-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 0;
}

.btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

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

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    margin-top: 12px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.text-btn {
    background: transparent;
    color: var(--text-muted);
    margin-top: 15px;
}

.text-btn:hover {
    color: white;
}

form {
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

form.active {
    display: block;
}

.message-box {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.message-box.active {
    display: flex;
}

.error-badge {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.message-box.error p {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.6;
}

.message-box.error p strong {
    color: #fca5a5;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

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