* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Фоновое изображение строительной площадки */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/construction-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Если изображения нет, используем градиент */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
    z-index: -2;
}

/* Левая секция */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    z-index: 1;
    position: relative;
}

.logo {
    margin-bottom: 40px;
}

.logo-main {
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-sub {
    font-size: 24px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-text {
    max-width: 600px;
}

.welcome-text h1 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-text .standards {
    font-size: 16px;
    font-style: italic;
    margin-top: 30px;
    opacity: 0.9;
}

/* Правая секция */
.right-section {
    flex: 0 0 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 1;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-header h3 {
    color: #7f8c8d;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input::placeholder {
    color: #bdc3c7;
}

.btn-submit {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-submit:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn-submit:active {
    transform: scale(0.95);
}

.arrow {
    font-weight: bold;
}

/* Выбор сайтов */
.sites-selection {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
    clear: both;
}

.sites-selection h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-link {
    text-decoration: none;
    color: inherit;
}

.site-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.site-item:hover {
    background: #e8f4f8;
    border-color: #3498db;
    transform: translateX(5px);
}

.site-icon {
    font-size: 32px;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.site-info {
    flex: 1;
}

.site-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.site-desc {
    font-size: 13px;
    color: #7f8c8d;
}

/* Форма входа для склада */
.warehouse-item {
    margin-top: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.warehouse-item:active {
    transform: translateX(3px) scale(0.98);
}

.warehouse-login-form {
    margin-top: 15px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #3498db;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-input-group {
    margin-bottom: 15px;
}

.login-input-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.login-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.login-input:focus {
    outline: none;
    border-color: #3498db;
}

.login-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.login-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #3498db;
    color: white;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.cancel-btn {
    background: #95a5a6;
}

.login-btn.cancel-btn:hover {
    background: #7f8c8d;
}

.login-error {
    margin-top: 10px;
    padding: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 13px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-section {
        flex: 0 0 auto;
        padding: 30px;
        text-align: center;
    }
    
    .right-section {
        flex: 1;
        padding: 20px;
    }
    
    .logo-main {
        font-size: 48px;
    }
    
    .welcome-text h1 {
        font-size: 24px;
    }
}
