.login-box,
.register-box {
    width: 360px;
    margin: 7%;
}

.login-box-body,
.register-box-body {
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.login-box-msg,
.register-box-msg {
    margin: 0;
    text-align: center;
    padding: 0 20px 20px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 500;
}

.form-control {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: medium;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-box-body .form-control-feedback,
.register-box-body .form-control-feedback {
    color: rgba(255, 255, 255, 0.7);
    right: 12px;
}

.login-box-msg,
.register-box-msg {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.0rem;
    font-weight: 500;
}

.form-control-feedback {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    pointer-events: none;
}

.checkbox label {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 5px;
}

.btn-primary {
    background: #2563eb !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Add smooth transitions for better interactivity */
.form-control,
.btn-primary {
    transition: all 0.3s ease;
}

/* Style for the checkbox */
.icheckbox_square-blue {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Adjust form group spacing */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Add some animation to the form controls on focus */
@keyframes focusAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-control:focus {
    animation: focusAnimation 0.3s ease;
}

.icheckbox_square-blue {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.icheckbox_square-blue.checked:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    line-height: 1;
}

.icheckbox_square-blue.checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkbox.icheck label {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

/* Hide the original checkbox input but keep it accessible */
.icheckbox_square-blue input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
}

/* Add hover effect */
.icheckbox_square-blue:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Focus state */
.icheckbox_square-blue input:focus + .iCheck-helper {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Ensure the remember me text aligns with checkbox */
.checkbox.icheck {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.iCheck-helper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.has-error .control-label {
    color: maroon !important; /* Brighter red */
}