
/* ===== Login Background ===== */
body {
    background: url("../../images/bg-login-cover.jpeg") no-repeat center center fixed !important;
    background-size: cover !important;
    //background-size: 140% !important; /* 120% – yumshoq zoom */
    background-position: center !important;
    background-attachment: scroll !important; /* mobile performance */
}

/* Half-opacity layer (optional) */

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.25);
    z-index: -1;
}


.login_form form .field {
   display: flex !important;
}
.center.verticle_center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2px;
}

.login_section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login_section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.logo_login {
    padding: 50px 40px 30px !important;
    text-align: center;
}

.logo_login img {
    max-width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
}

.login_form {
    padding: 40px;
}

/* Field styling */
.field {
    margin-bottom: 25px;
}

.label_field {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}
 .login_form form .field input {
     border-style: outset;
 }
/* Checkbox styling */
.form-check-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Button styling */
.main_bt {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.main_bt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Error message styling */
.alert-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.alert-error i {
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .login_section {
        margin: 2px;
        max-width: calc(100% - 1px);
    }

    .logo_login {
        padding: 40px 30px 25px !important;
    }

    .login_form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .logo_login {
        padding: 30px 25px 20px !important;
    }

    .login_form {
        padding: 25px;
    }

    .logo_login img {
        max-width: 140px;
    }
}

/* ======================
   Mobile-only overrides
   Desktop holatiga TEGMAYDI
   ====================== */
@media (max-width: 768px) {
    /* Form maydonlarini ustma-ust qilish */
    .login_form form .field {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Label — input ustida, 100% eni */
    .label_field {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 6px !important;
        font-size: 14px;
        font-weight: 600;
    }

    /* Inputlar to‘liq uzunlikda */
    .login_form form .field input {
        //width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    /* Checkboxlar ham maydonlar tartibiga mos bo‘ladi */
    .form-check-label {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        margin-top: 5px !important;
    }
    .form-check-label {
        white-space: normal !important;
        flex-wrap: wrap !important;
    }

    .form-check-label input.form-check-input {
        margin-bottom: 6px; /* optional, chiroy ochib turadi */
    }

    .form-check-input {
        margin-right: 10px !important;
    }

    /* Formning ichki paddingsi kichrayadi */
    .login_form {
        padding: 25px !important;
    }
}

/* Ultra small phones */
@media (max-width: 480px) {
    .login_form {
        padding: 18px !important;
    }
}
.login_form form .field label.label_field {    margin: 0 30px 0 15px;   }
.login_form form .field .form-check-label {    margin: 0 30px 0 15px !important;   }



   /* ===== ZAMONAVIY LOGIN SECTION ===== */
.login_section {
    background: rgba(255, 255, 255, 0.95); /* Shaffof oq */
    backdrop-filter: blur(20px); /* Blur effect */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset; /* Ichki border */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.login_section:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* ===== LOGO GRADIENT ===== */
.logo_login {
    padding: 45px 40px 35px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.logo_login::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo_login img {
    max-width: 300px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logo_login:hover img {
    transform: scale(1.05);
}

/* ===== INPUT FIELDS - Zamonaviy ===== */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    box-sizing: border-box;
}

input[type="text"]:hover,
input[type="password"]:hover {
    border-color: #cbd5e0;
    background: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(102, 126, 234, 0.12),
        0 4px 12px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-1px);
}

/* ===== BUTTON - 3D Effect ===== */
.main_bt {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.main_bt::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.main_bt:hover::before {
    width: 300px;
    height: 300px;
}

.main_bt:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(102, 126, 234, 0.5),
        0 4px 12px rgba(0,0,0,0.15);
}

.main_bt:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 2px 6px rgba(0,0,0,0.1);
}

/* ===== CHECKBOX - Modern Toggle Style ===== */
.form-check-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.form-check-label:hover {
    color: #667eea;
}

.form-check-input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Checkmark */
.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ===== ERROR ALERT - Modern ===== */
.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: slideIn 0.4s ease;
}

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

/* ===== FIELD SPACING ===== */
.field {
    margin-bottom: 20px;
}

.mb-2 {
    margin-bottom: 16px !important;
}

.margin_0 {
    margin-bottom: 0 !important;
}

   @media (min-width: 769px) {
    .login_form form .field label.label_field {
        margin: 0 30px 0 15px !important;
    }

    .login_form form .field .form-check-label {
        margin: 0 30px 0 15px !important;
    }
}
