:root {
    --primary-dark: #1a2744;
    --primary: #2c3e50;
    --accent-gold: #c9a962;
    --accent-gold-hover: #b8954d;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --error: #dc2626;
    --error-bg: #fef2f2;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-dark);
}

.brand-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.brand-content .tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.brand-content .quote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
}

.brand-features {
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: var(--error-bg);
    border: 1px solid #fecaca;
}

.alert-custom svg {
    width: 20px;
    height: 20px;
    color: var(--error);
    flex-shrink: 0;
}

.alert-custom strong {
    display: block;
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.alert-custom span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.input-wrapper:focus-within svg {
    color: var(--accent-gold);
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.1);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--primary-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--accent-gold-hover);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.4);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.form-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.security-badges span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-home:hover,
.back-link:hover {
    color: var(--primary-dark);
}

.back-home svg,
.back-link svg {
    width: 16px;
    height: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 1rem;
}

@@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-brand-side {
        padding: 2rem;
        text-align: center;
    }
    
    .brand-content .quote {
        display: none;
    }
    
    .brand-features {
        display: none;
    }
    
    .login-form-side {
        padding: 2rem 1.5rem;
    }
}
