* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7f8fc;
    color: #2d3748;
    line-height: 1.5;
    overflow-x: hidden;
}

.page-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #b8976a 0%, #a0845c 70%, #8b7355 100%);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.brand-area {
    max-width: 600px;
    text-align: center;
    color: white;
}

.logo-section {
    margin-bottom: 40px;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.brand-info {
    margin-top: 40px;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0.9;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 280px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 18px;
    color: white;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

.login-sidebar {
    width: 420px;
    background: white;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.login-card {
    width: 100%;
    max-width: 340px;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #a0845c, #8b7355);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(160, 132, 92, 0.3);
}

.login-icon i {
    font-size: 24px;
    color: white;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 0.9rem;
    color: #718096;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-left: 2px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

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

.input-icon i {
    font-size: 14px;
    color: #9ca3af;
}

.input-field input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 44px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.input-field input:focus {
    border-color: #a0845c;
    box-shadow: 0 0 0 3px rgba(160, 132, 92, 0.1);
}

.input-field input:focus + .input-icon i {
    color: #a0845c;
}

.input-field input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.toggle-password i {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.toggle-password:hover i {
    color: #a0845c;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    user-select: none;
}

.remember-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-mark i {
    font-size: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.remember-checkbox input:checked + .checkbox-mark {
    background: #a0845c;
    border-color: #a0845c;
}

.remember-checkbox input:checked + .checkbox-mark i {
    opacity: 1;
}

.forgot-password {
    color: #a0845c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #8b7355;
}

.login-button {
    height: 48px;
    background: linear-gradient(135deg, #a0845c 0%, #8b7355 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(160, 132, 92, 0.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-button:hover:not(.loading) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(160, 132, 92, 0.4);
}

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

.login-button .button-text,
.login-button .button-icon {
    transition: opacity 0.3s ease;
}

.login-button .loading-spinner {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button.loading {
    cursor: not-allowed;
}

.login-button.loading .button-text,
.login-button.loading .button-icon {
    opacity: 0;
}

.login-button.loading .loading-spinner {
    opacity: 1;
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.3s ease;
}

.error-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.error-icon i {
    font-size: 16px;
    color: #dc2626;
}

.error-content {
    flex: 1;
    color: #dc2626;
    font-size: 0.875rem;
    line-height: 1.4;
}

.error-content p {
    margin: 0;
}

.error-close {
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(220, 38, 38, 0.1);
}

.error-close i {
    font-size: 12px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.loading-content .spinner {
    margin-bottom: 16px;
}

.loading-content .spinner i {
    font-size: 32px;
    color: #a0845c;
}

.loading-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 40px;
    }

    .brand-name {
        font-size: 3rem;
    }

    .login-sidebar {
        width: 380px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .main-content {
        padding: 40px 20px;
        min-height: 60vh;
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .feature-item {
        min-width: auto;
        max-width: 300px;
    }

    .login-sidebar {
        width: 100%;
        padding: 32px 20px;
    }

    .login-card {
        max-width: 400px;
    }

    .form-extras {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .remember-checkbox {
        justify-content: center;
    }

    .forgot-password {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 16px;
    }

    .main-logo {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }

    .login-sidebar {
        padding: 24px 16px;
    }
}

.input-field input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.toggle-password:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.remember-checkbox input:disabled + .checkbox-mark {
    opacity: 0.5;
    cursor: not-allowed;
}