/* =============================================
   ZooLo — Professional CSS (BEM + CSS Variables)
   Kun (Light) va Tun (Dark) rejimi
   Kardsiz dizayn — barcha elementlar bitta fonda
   ============================================= */

/* ------- LIGHT THEME VARIABLES ------- */
:root {
    --bg-color: #f0f4f8;
    --text-main: #0f172a;
    --text-muted: #64748b;

    --btn-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --btn-text: #ffffff;
    --btn-shadow: 0 4px 14px rgba(30, 41, 59, 0.3);

    --link-color: #0284c7;
    --toggle-bg: rgba(0, 0, 0, 0.05);
}

/* ------- DARK THEME VARIABLES ------- */
[data-theme="dark"] {
    --bg-color: #0b1120;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --btn-gradient: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    --btn-text: #ffffff;
    --btn-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);

    --link-color: #38bdf8;
    --toggle-bg: rgba(255, 255, 255, 0.08);
}

/* ------- RESET ------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* ------- THEME TOGGLE ------- */
.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
}

.theme-btn {
    background: var(--toggle-bg);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    backdrop-filter: blur(8px);
}

.theme-btn:hover {
    background-color: rgba(128, 128, 128, 0.15);
    transform: scale(1.05);
}

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

.theme-icon {
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

/* ------- LAYOUT (Kardsiz — bitta fon) ------- */
.welcome-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

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

/* ------- LOGO ------- */
.welcome-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.welcome-logo:hover {
    transform: scale(1.03);
}

/* ------- SUBTITLE ------- */
.welcome-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

/* ------- WELCOME TITLE ------- */
.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* ------- FORM / BUTTON ------- */
.welcome-form {
    width: 100%;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
    width: 100%;
}

.welcome-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 16px;
    background: var(--card-bg); /* Yarkiyroq qilish uchu card background berildi */
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.welcome-input:focus {
    border-color: var(--link-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.welcome-input::placeholder {
    color: var(--text-muted);
}

.welcome-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 1rem;
    background: var(--btn-gradient);
    color: var(--btn-text);
    border: none;
    border-radius: 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: var(--btn-shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    user-select: none;
}

.welcome-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
    filter: brightness(1.08);
}

.welcome-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--btn-shadow);
}

/* ------- TERMS ------- */
.welcome-terms {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.welcome-link {
    color: var(--link-color);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.welcome-link:hover {
    opacity: 0.75;
}

/* ------- RESPONSIVE ------- */
@media (max-width: 480px) {
    .welcome-container {
        padding: 1.5rem 1rem;
    }

    .welcome-logo {
        width: 160px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }
}
