/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
}

/* Main container */
.main-container {
    display: flex;
    height: 100vh;
}

/* Left side - Logo section */
.logo-section {
    display: none;
    width: 50%;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.logo-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    backdrop-filter: blur(10px);
}

.logo-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.main-logo {
    width: 320px;
    height: 320px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.company-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    font-weight: 300;
}

.decorative-line {
    margin-top: 2rem;
    width: 6rem;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
}

/* Right side - Form section */
.form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile logo */
.mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-logo-container {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.mobile-company-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Form header */
.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Alert styles */
.alert {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert i {
    margin-right: 0.5rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    height: 3rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

/* Submit button */
.submit-btn {
    width: 100%;
    height: 3rem;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-password {
    font-size: 0.875rem;
    color: #6b7280;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #2563eb;
}

/* Desktop styles */
@media (min-width: 1024px) {
    .logo-section {
        display: flex;
    }
    
    .form-section {
        width: 50%;
    }
    
    .mobile-logo {
        display: none;
    }
    
    .form-header {
        display: block;
    }
}

/* Mobile responsive */
@media (max-width: 1023px) {
    .form-header {
        display: none;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .mobile-logo-container {
        width: 6rem;
        height: 6rem;
    }
    
    .mobile-company-name {
        font-size: 1.25rem;
    }
}