:root {
    --primary: #00d4ff;
    --secondary: #0055ff;
    --bg-dark: #050510;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
}

/* Dinamik nurli sharlar (Background Orbs) */
.login-page {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #101025 0%, #050510 100%);
}

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    animation: orbMove 20s infinite alternate;
}

.orb-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    background: #ff00ff;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.login-card {
    position: relative;
    width: 90%;
    max-width: 1100px; /* Kompyuterda keng dashboard ko'rinishi */
    min-height: 600px;
    z-index: 1;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    display: flex; /* Ikki ustunli qilish uchun */
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-info-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 85, 255, 0.1) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border-right: 1px solid var(--border);
}

.login-form-side {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* Telefonlar uchun dizaynni yana toraytiramiz */
@media (max-width: 992px) {
    .login-card {
        max-width: 500px;
        flex-direction: column;
        min-height: auto;
    }
    .login-info-side {
        display: none; /* Telefonda faqat formani qoldiramiz */
    }
    .login-form-side {
        padding: 40px 30px;
    }
}

.logo-container img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px var(--primary));
}

h2 {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    color: white;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    filter: brightness(1.1);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Tasdiqlash tugmalari uchun maxsus ranglar */
.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2) !important;
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2) !important;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4) !important;
}

/* Ro'yxatdan o'tish uchun maxsus dizaynlar */
.org-data-card {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    padding: 24px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

.data-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.data-row i {
    color: var(--accent-color);
    width: 20px;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.data-label {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.data-value {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 400;
    word-break: break-word;
}

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

.step-container {
    animation: fadeIn 0.4s ease-in-out;
}

/* Yuklanish animatsiyasi */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 10px auto;
}

/* Maxsus bildirishnoma (Alert) dizayni */
.custom-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0; /* Odatiy holatda shaffof */
    visibility: hidden; /* Odatiy holatda yashirin */
    pointer-events: none; /* Sichqoncha tegmasligi uchun */
}

.custom-alert.show {
    top: 30px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-alert i {
    font-size: 1.2rem;
}

.alert-error { border-left: 4px solid #e74c3c; }
.alert-success { border-left: 4px solid #2ecc71; }
.alert-info { border-left: 4px solid var(--accent-color); }

.login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--accent-color);
}

.flash-msg {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
