/* LOGIN / REGISTER */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
}

/* Font Awesome iconlar uchun font-family - body'da boshqa font qo'yilgan, shuning uchun iconlarga maxsus qo'yish kerak */
i[class*="fa-"],
i[class^="fa-"],
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900;
    font-style: normal;
    display: inline-block;
}

.fa-regular,
.far {
    font-weight: 400 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.lang-switcher a {
    color: #64748b;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-switcher a.active {
    background: #3b82f6;
    color: #ffffff;
}

.lang-switcher span {
    color: #cbd5e1;
}

.card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile responsive for login logo */
@media (max-width: 480px) {
    .logo-img {
        width: 200px;
    }
    
    .logo-block {
        margin-bottom: 28px;
        padding: 16px 0;
    }
}

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

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    padding: 20px 0;
}

.logo-img {
    width: 240px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    /* Ortiqcha effektlar olib tashlandi - toza professional ko'rinish */
}

.logo-img:hover {
        transform: scale(1.02);
    }

/* Pulse animatsiyasi olib tashlandi - toza professional ko'rinish */

.container .card p {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.container .card p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.container .card p a:hover {
    color: #764ba2;
    text-decoration: underline;
}

h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.flash {
    background: #fee2e2;
    color: #7f1d1d;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

form {
    width: 100%;
}

input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 15px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8fafc;
}

input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.pwd {
    position: relative;
}

.pwd input {
    padding-right: 44px;
}

.pwd span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
    color: #64748b;
    transition: all 0.3s;
    padding: 4px;
    border-radius: 6px;
}

.pwd span:hover {
    opacity: 1;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    margin-top: 8px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}
/* AUTH CARD HEIGHT CONTROL */
.card {
    max-height: 90vh;
    overflow-y: auto;
}

/* Register sahifada hintlar juda cho'zilib ketmasligi uchun */
.hint {
    font-size: 12px;
    margin: 8px 0 12px;
    line-height: 1.6;
    padding: 8px 0;
}

.hint div {
    margin: 4px 0;
    transition: all 0.2s;
    color: #64748b;
}

/* Parol shartlari bajarilganda yashil, bajarilmaganda qizil */
.hint div[style*="green"],
.hint div[style*="#22c55e"] {
    color: #22c55e !important;
    font-weight: 500;
}

.hint div[style*="red"],
.hint div[style*="#ef4444"] {
    color: #ef4444 !important;
}

/* Register inputlar orasini biroz qisqartiramiz */
.card input {
    margin-bottom: 10px;
}
