/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: white;
    overflow: hidden;
    position: relative;
}

/* Welcome Section - Left Side */
.welcome-section {
    flex: 2;
    background: linear-gradient(135deg, #002E5D 0%, #002E5D 50%, #2774AE	 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 40px;
    min-height: 100vh;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.welcome-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.welcome-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Welcome logo and system name adjustments */
.welcome-content .welcome-logo {
    display: block;
    width: 420px; /* larger for stronger presence */
    height: auto;
    margin: 0 auto 6px; /* closer spacing to system name */
}

.welcome-content .system-name {
    font-size: 2.2rem; /* smaller for subtler title */
    margin-top: 0; /* bring title up a little */
    margin-bottom: 14px; /* slightly tighter overall rhythm */
}

/* Login Section - Right Side */
.login-section {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgb(252, 252, 255);
}

.login-box {
    width: 100%;
    max-width: 330px;
    background: rgba(252, 252, 253, 0.95);
    padding: 45px;
    border-radius: 3px;
    border: 1px solid #b5b6b6; /* subtle gray border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.login-box h2 {
    font-size: 1.6rem; /* minimized to fit longer text */
    font-weight: 600;
    color: #333333 !important;
    text-align: center;
    margin-bottom: 22px; /* tighter spacing */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #2a5298;
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.input-group input:valid,
.input-group input:focus {
    border-color: #667eea;
}

.input-group label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: #667eea;
    background: white;
    padding: 0 8px;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-group input:focus ~ .input-icon {
    color: #667eea;
}

/* Password Toggle */
.password-group {
    position: relative;
}

.password-group input {
    padding: 15px 50px 15px 50px;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2a5298;
}

/* Login Button */
/* Hide Edge/IE default password reveal and clear icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #002E5D 0%, #002E5D 50%, #2774AE 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.6);
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #0277bd 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        width: 100vw;
        height: 100vh;
    }
    
    .welcome-section {
        padding: 30px 20px;
        min-height: 40vh;
    }
    
    .welcome-content h1 {
        font-size: 2.5rem;
    }

    /* Ensure system name scales appropriately on tablets */
    .welcome-content .system-name {
        font-size: 2rem;
        margin-top: 0;
    }

    /* Slightly smaller logo on tablets */
    .welcome-content .welcome-logo {
        width: 360px;
        margin-bottom: 6px;
    }
    
    .login-section {
        padding: 30px 20px;
        min-height: 60vh;
    }
    
    .login-box {
        padding: 30px 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 2rem;
    }

    /* Mobile scaling for system name and logo */
    .welcome-content .system-name {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .welcome-content .welcome-logo {
        width: 320px;
        margin-bottom: 6px;
    }
    
    .login-box h2 {
        font-size: 1.3rem; /* smaller on mobile */
    }
    
    .input-group input {
        padding: 12px 45px 12px 15px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 1rem;
    }
}