/* Custom Login Page Styles - Blue Theme v2.1.1 */

.custom-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4A90E2 0%, #2E5BBA 50%, #1E3A8A 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    z-index: 1;
}

/* Ensure full coverage when used as template */
body.custom-login-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.custom-login-body .custom-login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.login-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

.login-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    position: relative;
    overflow: hidden;
}

.abstract-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    top: -50px;
    left: -30px;
    transform: rotate(-15deg);
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    top: 20px;
    right: -40px;
    transform: rotate(25deg);
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    bottom: -30px;
    left: 20px;
    transform: rotate(45deg);
}

.login-right {
    flex: 0 0 60%;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 350px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 40px;
    text-align: center;
}

.custom-login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2C3E50;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: #2C3E50;
    stroke-width: 2.5;
}

.input-group input {
    width: 100% !important;
    padding: 15px 15px 15px 55px !important;
    border: 2px solid #E1E8ED;
    border-radius: 12px;
    font-size: 16px;
    color: #2C3E50;
    background: #FAFBFC;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #4A90E2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-group input::placeholder {
    color: #95A5A6;
    font-size: 16px;
}

.remember-me {
    margin-bottom: 20px !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

.remember-me label {
    display: flex !important;
    align-items: center !important;
    color: #7F8C8D !important;
    font-size: 14px !important;
    cursor: pointer !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #4A90E2 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #4A90E2 0%, #2196F3 50%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

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

.login-links {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forgot-password {
    color: #7F8C8D;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #4A90E2;
    text-decoration: underline;
}

.home-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.home-link:hover {
    color: #1976D2;
    text-decoration: underline;
    transform: translateX(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 400px;
    }
    
    .login-left {
        flex: 0 0 200px;
    }
    
    .login-right {
        flex: 1;
        padding: 40px 30px;
    }
    
    .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .custom-login-container {
        padding: 10px;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px;
        font-size: 14px;
    }
}

/* Dynamic Logo Styling */
.login-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.logo-image {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
    background: white;
    padding: 10px;
}

.logo-text {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
