/* Login Page Styles - Split Screen Design */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar Styles */
.login-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    color: #1218a5 !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.home-btn {
    border-radius: 20px;
    border-color: #1218a5;
    color: #1218a5;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background-color: #1218a5;
    color: white;
    transform: translateY(-1px);
}

/* Main Container */
.login-container {
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Left Side - White Background with Login Card */
.login-card-wrapper {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: #ffffff;
    position: relative;
    z-index: 10;
}

/* Right Side - Blue Medical Background */
.login-background {
    flex: 0 0 50%;
    position: relative;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    overflow: hidden;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 0 auto;
}

.login-card-body {
    padding: 3rem;
}

/* Logo Container */
.login-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #1218a5;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(18, 24, 165, 0.2);
}

.logo-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.logo-text-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: #1218a5;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo-text-bottom {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

/* Title */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Form Styles */
.login-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
}

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

.form-control:focus {
    border-color: #1218a5;
    box-shadow: 0 0 0 3px rgba(18, 24, 165, 0.1);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #1218a5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background-color: #0d1180;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 24, 165, 0.3);
}

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

.forgot-password-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #1218a5;
}

.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Medical Graphics Container */

.medical-graphics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.medical-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
}

/* Caduceus */
.caduceus {
    width: 120px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

/* Clipboard */
.clipboard {
    width: 100px;
    height: 125px;
    top: 20%;
    left: 20%;
    opacity: 0.35;
}

/* Plus Signs */
.plus-sign {
    font-size: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

.plus-1 {
    top: 25%;
    left: 30%;
    font-size: 50px;
}

.plus-2 {
    top: 40%;
    left: 15%;
    font-size: 35px;
}

.plus-3 {
    top: 55%;
    left: 35%;
    font-size: 45px;
}

.plus-4 {
    top: 70%;
    left: 20%;
    font-size: 30px;
}

.plus-5 {
    top: 80%;
    left: 40%;
    font-size: 40px;
}

/* Hexagons */
.hexagon {
    width: 80px;
    height: 80px;
    opacity: 0.25;
}

.hex-1 {
    top: 30%;
    left: 10%;
}

.hex-2 {
    top: 60%;
    left: 50%;
    width: 60px;
    height: 60px;
}

/* Pills */
.pill {
    width: 80px;
    height: 40px;
    opacity: 0.3;
}

.pill-1 {
    bottom: 20%;
    left: 15%;
}

.pill-2 {
    bottom: 15%;
    left: 30%;
    width: 70px;
    height: 35px;
}

/* Heart with Cross */
.heart-cross {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 45%;
    opacity: 0.3;
}

/* Abstract Patterns */
.pattern {
    width: 150px;
    height: 150px;
    opacity: 0.2;
}

.pattern-1 {
    top: 50%;
    left: 5%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-container {
        flex-direction: column;
        height: calc(100vh - 70px);
    }
    
    .login-card-wrapper {
        flex: 1;
        padding: 2rem;
        min-height: 60vh;
    }
    
    .login-background {
        flex: 1;
        min-height: 40vh;
    }
    
    .login-card-body {
        padding: 2rem;
    }
    
    .login-logo-circle {
        width: 150px;
        height: 150px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .caduceus {
        width: 80px;
        height: 160px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .clipboard {
        width: 70px;
        height: 90px;
        top: 10%;
        left: 20%;
    }
}

@media (max-width: 575.98px) {
    .login-card-wrapper {
        padding: 1.5rem;
    }
    
    .login-card {
        width: 100%;
        max-width: 100%;
    }
    
    .login-card-body {
        padding: 1.5rem;
    }
    
    .login-logo-circle {
        width: 120px;
        height: 120px;
    }
    
    .logo-text-top {
        font-size: 7px;
    }
    
    .logo-text-bottom {
        font-size: 6px;
    }
    
    .login-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-btn {
        padding: 12px;
    }
    
    .medical-icon {
        opacity: 0.2;
    }
}

/* Form Validation Styles */
.was-validated .form-control:invalid {
    border-color: #ef4444;
}

.was-validated .form-control:valid {
    border-color: #10b981;
}

.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.was-validated .form-control:valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
