/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ============================================
   LOGIN WRAPPER & LAYOUT
   ============================================ */

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    position: relative;
}

/* ============================================
   LEFT PANEL - INFORMATION
   ============================================ */

.login-left {
    background: linear-gradient(135deg, #8B4513 0%, #654321 50%, #4A2C17 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 3px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(210, 180, 140, 0.05) 4px, transparent 4px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    pointer-events: none;
    z-index: 1;
}

.login-left-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

/* Logo Section */
.logo-section {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 120px;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}

.brand-name {
    display: none;
}

/* Info Section */
.info-section {
    margin-bottom: 50px;
}

.info-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.info-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Features */
.features {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #FFD700;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* Company Stats */
.company-stats {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.company-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    color: #FFD700;
    margin-top: 2px;
}

/* ============================================
   RIGHT PANEL - LOGIN FORM
   ============================================ */

.login-right {
    background: #FFFFFF;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-right::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

/* Login Header */
.login-header {
    margin-bottom: 35px;
    text-align: center;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #999999;
}

/* Login Form */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.input-wrapper:focus-within {
    border-color: #8B4513;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.05);
}

.input-wrapper i {
    color: #8B4513;
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    color: #333333;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #CCCCCC;
}

.toggle-password {
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #654321;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B4513;
}

.remember-me label {
    cursor: pointer;
    color: #666666;
}

.forgot-password {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #654321;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #654321 0%, #4A2C17 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #EEEEEE;
}

.help-text {
    font-size: 13px;
    color: #999999;
    margin-bottom: 12px;
}

.help-text i {
    color: #8B4513;
    margin-right: 5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info a {
    font-size: 13px;
    color: #8B4513;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: #654321;
}

/* ============================================
   MODAL - PASSWORD RECOVERY
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333333;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #EEEEEE;
    text-align: center;
}

.modal-header h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-header p {
    font-size: 13px;
    color: #999999;
}

.modal-form {
    padding: 30px;
}

.btn-recover {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-recover:hover {
    background: linear-gradient(135deg, #654321 0%, #4A2C17 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.alert.show {
    display: flex;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert.info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }
    
    .login-left {
        padding: 40px 30px;
        min-height: 50vh;
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    .login-right {
        padding: 40px 30px;
        min-height: 50vh;
    }
    
    .logo-section {
        margin-bottom: 30px;
    }
    
    .logo-image {
        height: 80px;
        max-width: 220px;
    }
    
    .brand-name {
        display: none;
    }
    
    .info-section {
        margin-bottom: 30px;
    }
    
    .info-section h2 {
        font-size: 22px;
    }
    
    .info-section p {
        font-size: 13px;
    }
    
    .features {
        margin-bottom: 30px;
    }
    
    .feature {
        padding: 12px;
    }
    
    .company-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-header h2 {
        font-size: 26px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .alert {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 30px 20px;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .logo-section {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .logo-image {
        height: 70px;
        max-width: 200px;
    }
    
    .brand-name {
        display: none;
    }
    
    .info-section h2 {
        font-size: 18px;
    }
    
    .info-section p {
        font-size: 12px;
    }
    
    .feature {
        padding: 10px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .feature-text h4 {
        font-size: 13px;
    }
    
    .feature-text p {
        font-size: 12px;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
