﻿/*
 * Modern Split-Screen Login Design
 * Based on modern UI/UX principles with responsive design
 * Desktop: Split-screen (left welcome, right form)
 * Mobile: Full-screen form only
 * Author: Auto-generated for DotNet CRM
 * Date: 2025-11-13
 * 
 * TO REVERT: Delete this file and rename Login_old.css > Login.css
 */

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    
    /* CHANGE BACKGROUND IMAGE HERE if needed */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url("../RESOURCES/bgw1.jpg") no-repeat center center fixed;
    background-size: cover;
    
    /* Alternative: Adjust overlay darkness (0.6 = 60% dark) */
    /* Higher number = darker, Lower number = brighter */
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("...") */
}

/* ========== Main Container ========== */
.login-box {
    display: flex;
    width: 100%;
    min-height: 100vh;
    animation: fadeInScale 1.2s ease-out;
}

/* Fade-in animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Left Side - Welcome Panel ========== */
.welcome-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated geometric pattern background */
.welcome-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px);
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Decorative wavy shapes */
.welcome-panel::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.welcome-content {
    z-index: 10;
    text-align: center;
    color: white;
}

.welcome-content .avatar {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.welcome-content p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Decorative dots */
.decorative-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.decorative-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.decorative-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.decorative-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* ========== Right Side - Login Form Panel ========== */
/* GLASSMORPHISM EFFECT - Transparent/Frosted Glass */
/* TO REVERT TO WHITE: Change background to "white" and remove backdrop-filter */
.login-form-panel {
    flex: 1;
    
    /* Glass effect - transparent with blur */
    background: rgba(255, 255, 255, 0.15);  /* 15% white transparency */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    
    /* Alternative: More solid glass (less see-through) */
    /* background: rgba(255, 255, 255, 0.25); */
    
    /* Alternative: REVERT TO WHITE BACKGROUND */
    /* background: white; */
    /* Remove backdrop-filter line */
    
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;  /* Bright white */
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(30, 60, 114, 0.5),   /* Blue shadow for depth */
                 0 0 20px rgba(255, 255, 255, 0.3);  /* White glow */
    
    /* Alternative: Light blue instead of white */
    /* color: #60a5fa; */
}

.form-header p {
    font-size: 14px;
    color: #e0f2fe;  /* Light blue-white */
    text-shadow: 0 1px 4px rgba(30, 60, 114, 0.4);  /* Blue shadow for visibility */
    
    /* Alternative: Pure white */
    /* color: rgba(255, 255, 255, 0.9); */
}

/* ========== Input Fields ========== */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    height: 55px;
    padding: 15px 15px 15px 45px; /* Left padding for icon */
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    
    /* Glass effect for input fields */
    background: rgba(255, 255, 255, 0.7);  /* 70% white - more opaque for readability */
    backdrop-filter: blur(10px);
    
    /* Alternative: Solid white (if glass effect too subtle) */
    /* background: rgba(255, 255, 255, 0.95); */
    
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    outline: none;
    border-color: #1e3c72;
    background: rgba(255, 255, 255, 0.9);  /* More opaque when focused */
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.2), 
                0 8px 16px rgba(0, 0, 0, 0.1);
}

.input-group input[type="text"]::placeholder,
.input-group input[type="password"]::placeholder {
    color: #9ca3af;
}

/* Password toggle button */
#show_hide_password {
    position: relative;
    width: 100%;
}

#show_hide_password input {
    padding-right: 50px;
}

.input-group-addon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    padding: 8px;
}

.input-group-addon a {
    color: #6b7280;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.input-group-addon a:hover {
    color: #1e3c72;
}

.input-group-addon i {
    color: inherit !important;
    font-size: 18px !important;
}

/* ========== Login Button ========== */
.button {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

.button:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== Forgot Password Link ========== */
#forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #bfdbfe;  /* Light blue-white */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(30, 60, 114, 0.5);  /* Blue shadow for depth */
    font-weight: 500;
    
    /* Alternative: Pure white */
    /* color: rgba(255, 255, 255, 0.85); */
}

#forgot-password:hover {
    color: #ffffff;  /* Bright white on hover */
    text-decoration: underline;
    text-shadow: 0 2px 6px rgba(30, 60, 114, 0.6),
                 0 0 10px rgba(255, 255, 255, 0.4);  /* Glow effect */
}

/* ========== Version Label ========== */
.label_version {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
    z-index: 100;
}

/* ========== Mobile Logo (Visible only on mobile/tablet) ========== */
.mobile-logo-container {
    text-align: center;
    margin-bottom: 30px;
    display: none; /* Hidden on desktop */
}

.mobile-logo {
    width: 120px;
    height: auto;
    animation: logoFadeIn 1s ease-out;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Responsive Design - Mobile ========== */
@media (max-width: 992px) {
    .login-box {
        flex-direction: column;
    }
    
    /* Hide welcome panel on tablet/mobile */
    .welcome-panel {
        display: none;
    }
    
    /* Show mobile logo on tablet/mobile */
    .mobile-logo-container {
        display: block; /* Visible on mobile */
    }
    
    .login-form-panel {
        flex: 1;
        width: 100%;
        padding: 40px 20px;
    }
    
    .login-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    /* Smaller logo for very small screens */
    .mobile-logo {
        width: 100px;
    }
    
    .mobile-logo-container {
        margin-bottom: 25px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .input-group input[type="text"],
    .input-group input[type="password"] {
        height: 50px;
        font-size: 14px;
    }
    
    .button {
        height: 50px;
        font-size: 15px;
    }
}

/* ========== Print - Hide Login Form ========== */
@media print {
    body {
        display: none;
    }
}
