/**
 * Luxury Corporate Login Page Styles
 * Dark modern theme with amber/gold accents
 * Optimized for performance
 */

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(15, 15, 22, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --amber: #d4af37;
    --amber-light: #f4d03f;
    --amber-dark: #b8941f;
    --gold: #ffd700;
    --gold-light: #ffed4e;
    
    --text-primary: #f5f5f5;
    --text-secondary: #c5c5c5;
    --text-muted: #888;
    
    --border-color: rgba(212, 175, 55, 0.2);
    --border-hover: rgba(212, 175, 55, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-amber: 0 0 20px rgba(212, 175, 55, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Simplified background - no heavy images */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
    pointer-events: none;
}

/* ===== Language Switcher ===== */
.lang-switcher {
    position: fixed;
    top: 24px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

body[dir="rtl"] .lang-switcher {
    left: 24px;
}

body[dir="ltr"] .lang-switcher {
    right: 24px;
}

.lang-switcher a {
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-card);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.lang-switcher .lang-switch-inner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
}

.lang-switcher .lang-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.lang-switcher .lang-name {
    font-size: 13px;
    font-weight: 600;
}

.lang-switcher a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--amber);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Landing Section ===== */
.landing-section {
    padding: 80px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.landing-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 8px;
}

.logo-img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.6));
    transform: scale(1.02);
}

/* Company Heading */
.company-heading {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.company-subtitle {
    font-size: 16px;
    text-align: center;
    color: var(--amber);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

/* Content Blocks */
.content-block {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.content-block:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.block-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.block-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.block-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Services List */
.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.services-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 600;
}

body[dir="rtl"] .services-list li {
    padding-left: 0;
    padding-right: 24px;
}

body[dir="rtl"] .services-list li::before {
    left: auto;
    right: 0;
}

/* Values Grid */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.value-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--amber-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.value-badge:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--amber);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-block {
    margin-top: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-amber);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== Login Section ===== */
.login-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.login-container {
    max-width: 480px;
    margin: 0 auto;
}

.login-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.login-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-amber);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.login-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

/* Login Toggle */
.login-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.toggle-btn:not(.active):hover {
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.1);
}

/* Login Forms */
.login-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.login-form.active {
    display: flex;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-form input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.05);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-amber);
}

.btn-login:active {
    transform: translateY(0);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* Error Box */
.error-box {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.error-item {
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 4px;
}

.error-item:last-child {
    margin-bottom: 0;
}

/* Role Info */
.role-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.role-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.role-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.role-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
}

.role-badge.admin {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--amber);
    color: var(--amber-light);
}

.role-badge.employee {
    background: rgba(0, 200, 255, 0.15);
    border-color: rgba(0, 200, 255, 0.4);
    color: #7dd3fc;
}

.role-badge.visitor {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(128, 128, 128, 0.4);
    color: #d3d3d3;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .landing-section {
        padding: 60px 16px 40px;
    }
    
    .content-block {
        padding: 24px;
    }
    
    .block-title {
        font-size: 20px;
    }
    
    .company-heading {
        font-size: 24px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .toggle-btn {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 100px;
    }
    
    .company-heading {
        font-size: 20px;
    }
    
    .company-subtitle {
        font-size: 14px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .login-card {
        padding: 24px 20px;
    }
}

/* ===== RTL Support ===== */
body[dir="rtl"] {
    direction: rtl;
}

body[dir="ltr"] {
    direction: ltr;
}

/* ===== Performance Optimizations ===== */
/* Reduce repaints */
.login-form,
.content-block,
.login-card {
    will-change: transform;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

