/* Custom Login Styles */
body, html {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Image */
.login-image-section {
    flex: 1;
    background: url('/assets/img/hemoionics/loginbanner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    /* Optional overlay if needed to match the red tint better, 
       though the image itself seems to have it */
}

/* Right Side - Form */
.login-form-section {
    width: 50%; /* Default split */
    max-width: 600px; /* Max width for large screens */
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    z-index: 10;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-image-section {
        height: 30vh; /* Show a bit of image on top */
        flex: none;
    }
    .login-form-section {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: -20px; /* Overlap effect */
        flex: 1;
    }
}

/* Form Elements */
.login-logo {
    max-width: 180px;
    margin-bottom: 2rem;
}

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 3rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.custom-input-group {
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.custom-input-group:focus-within {
    border-color: #e0e0e0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-input-group input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    outline: none;
}

.custom-input-group input::placeholder {
    color: #aaa;
}

.custom-input-group i {
    color: #ccc;
    font-size: 1rem;
    margin-left: 10px;
}

/* Main Action Button */
.btn-login-custom {
    background-color: #e31c23; /* Ionic Red */
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 25px; /* Rounded pill shape */
    padding: 12px 0;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(227, 28, 35, 0.2);
}

.btn-login-custom:hover {
    background-color: #c9181e;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(227, 28, 35, 0.3);
    color: #000000 !important;
}

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

.forgot-password {
    text-align: center;
    margin-top: 2rem;
}

.forgot-password a {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #555;
    text-decoration: underline;
}

/* Error/Success Messages override */
.jconfirm-box {
    border-radius: 8px !important;
}
