/* Modern Login Page Styles - Glassmorphism Design */

/* Force modern styles - prevent old styles from showing */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.modern-login-container {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.modern-login-wrapper {
    display: flex !important;
    max-width: 1100px !important;
	width: 100% !important;
    background: transparent !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Left Panel - Welcome */
.modern-welcome-panel {
    flex: 1.2 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 60px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    color: white !important;
    position: relative !important;
}

.welcome-logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-logo img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-placeholder {
    display: flex;
    gap: 8px;
    align-items: center;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.welcome-title {
    font-size: 42px;
    font-weight: 700;
	margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.welcome-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
}

/* Right Panel - Login Form */
.modern-login-panel {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 60px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}


.modern-login-form {
    width: 100%;
}

.modern-form-group {
    margin-bottom: 24px;
    position: relative;
}

.modern-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 8px;
}

.modern-input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    color: #303030;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: #83b83c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(131, 184, 60, 0.1);
}

.modern-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.modern-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: color 0.3s ease;
}

.modern-password-toggle:hover {
    color: #83b83c;
}

.modern-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #303030;
    user-select: none;
}

.modern-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #83b83c;
    border-color: #83b83c;
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: #303030;
}

.modern-submit-btn {
	width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.modern-copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.modern-copyright .external {
    color: #83b83c;
    font-weight: 500;
}

/* Alerts */
.modern-login-panel .alert {
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .modern-login-wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .modern-welcome-panel {
        flex: 1;
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        align-items: center;
    }

    .welcome-title {
        font-size: 32px;
    }

    .welcome-subtitle {
        max-width: 100%;
    }

    .modern-login-panel {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .modern-login-container {
        padding: 10px;
    }

    .modern-welcome-panel {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .modern-login-panel {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
    }
}

/* Dark mode support */
.dark-mode .modern-login-panel {
    background: rgba(30, 30, 30, 0.95);
}

.dark-mode .login-title,
.dark-mode .modern-label,
.dark-mode .checkbox-label {
    color: #e0e0e0;
}

.dark-mode .login-subtitle {
    color: #999;
}

.dark-mode .modern-input {
    background: rgba(40, 40, 40, 0.8);
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .modern-input:focus {
    background: rgba(50, 50, 50, 0.9);
    border-color: #83b83c;
}

.dark-mode .checkmark {
    background: rgba(40, 40, 40, 0.8);
    border-color: #444;
}

/* Legacy styles for compatibility - Force hide old elements */
.login-page .form-outer,
.register-page .form-outer {
    display: none !important;
}

.login-page .copyrights,
.register-page .copyrights {
    display: none !important;
}

/* Safari mobile specific fixes */
@supports (-webkit-touch-callout: none) {
    .modern-welcome-panel {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .modern-login-panel {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* Force modern layout on all devices */
@media screen {
    .modern-login-container,
    .modern-login-wrapper,
    .modern-welcome-panel,
    .modern-login-panel {
        display: flex !important;
    }
}
