body {
    background-color: #f5f8fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: "Inter", sans-serif;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-image {
    flex: 1;
    background-image: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    position: relative;
    display: none; /* Hidden on mobile */
}

.login-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://images.unsplash.com/photo-1580273916550-e323be2ae537?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.login-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-image h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.login-image p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 300px;
    line-height: 1.6;
}

.login-form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo i {
    font-size: 32px;
    color: #3498db;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.login-logo span {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-title p {
    color: #7f8c8d;
    font-size: 15px;
}

.login-error {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    border-left: 4px solid #e53e3e;
}

.login-error.show {
    display: block;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #fff;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2c3e50 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 14px;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
    .login-image {
        display: flex;
    }

    .login-form-container {
        padding: 60px;
    }
}

/* Fix for Select2 width issue */
.form-group {
    position: relative;
    width: 100%;
}

select.country-select {
    width: 100% !important;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
    /* display: block; */
}

.select2-container--default {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 46px !important;
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 46px !important;
    width: 100% !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 30px !important;
    color: #333 !important;
    font-size: 15px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 44px !important;
}

/* Make sure the button has the same width */
.btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.text-danger {
    color: red;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 50px;
}

.alert-danger {
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    margin-bottom: 10px;
}

.alert-success {
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    margin-bottom: 10px;
}

.password-input-group {
    position: relative;
    width: 100%;
}

.password-input-group .form-control {
    padding-right: 40px;
}

.password-input-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.password-input-group .toggle-password:hover {
    color: #3498db;
}
