/* ========================================
   LOGIN PAGE LAYOUT STYLES
   ======================================== */

/* Login container */
.login {
    min-height: 100vh;
    width: 100%;
}

.login .row {
    margin: 0;
}

/* Left side - Form Section */
.login .col-lg-7 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #ffffff;
}

.login-form {
    width: 80%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove top margin that pushes content up */
.login .mt-10 {
    margin-top: 0 !important;
}

/* Center the form vertically */
.login .d-flex.flex-column.justify-content-between {
    justify-content: center !important;
    height: 100%;
    gap: 40px;
}

/* Sign In title */
.login h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Form styling */
.login .form-group {
    margin-bottom: 25px;
}

.login .text-label {
    font-weight: 500;
    font-size: 16px;
    color: #4F4F4F;
    margin-bottom: 8px;
    display: block;
}

.login-form-input {
    background-color: #FAF8F8 !important;
    border: 1px solid #EFEFEF !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-form-input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    outline: none;
}

.login-form-input::placeholder {
    color: #BDBDBD !important;
}

.login-form-input.is-invalid {
    border-color: #dc3545 !important;
}

/* Password group */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group input {
    padding-right: 50px !important;
}

/* When password field has error, add more padding for the error icon */
.password-group input.is-invalid {
    padding-right: 80px !important;
    background-position: right 45px center !important;
}

.password-group .input-group-append {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.btn-eye-unmask {
    background-color: transparent !important;
    border: none !important;
    color: #6c757d;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-eye-unmask:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1) !important;
}

.btn-eye-unmask:focus {
    outline: none;
    box-shadow: none;
}

.btn-eye-unmask i {
    font-size: 16px;
}

/* Sign In button */
.login .btn-primary {
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login .btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Error messages */
.form-control-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Footer copyright */
.login .p-7 {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

/* Right side - Background Section */
.custom-background {
    background: linear-gradient(180deg, rgba(37, 37, 37, 0.63) 0%, rgba(45, 15, 25, 0.63) 54.05%, rgba(135, 206, 235, 0.63) 80.07%),
                url('../../assets/media/bg/bg14.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-height: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.text-h4-login {
    font-size: 32px !important;
    font-weight: 600;
    color: #FDF3ED;
    margin-bottom: 20px;
    text-align: center;
}

.text-login-desc {
    font-size: 20px !important;
    font-weight: 500;
    color: #FDF3ED;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .login .col-lg-7 {
        min-height: 100vh;
    }
    
    .login-form {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .login h3 {
        font-size: 24px;
    }
    
    .login-form {
        width: 95%;
    }
    
    .login .form-group {
        margin-bottom: 20px;
    }
}

/* Remove spinner arrows from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

