/* Базовый сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e6edf3;
    padding: 20px;
    overflow: hidden;
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #161b22;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-container {
    background-color: rgba(22, 27, 34, 0.95);
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #30363d;
}

.logo-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: #58a6ff;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.logo-header p {
    opacity: 0.8;
    font-size: 1.1rem;
    color: #8b949e;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

input {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #30363d;
    font-size: 1.1rem;
    background-color: #0d1117;
    color: #e6edf3;
    outline: none;
    transition: all 0.3s;
}

input::placeholder {
    color: #6e7681;
}

input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}

button {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.3);
}

button:active {
    transform: translateY(0);
}

.error-message {
    color: #f85149;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.hidden {
    display: none;
}

.support-info {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1.5rem;
    color: #8b949e;
}

.customer-image {
    width: 50%;
    /* УБРАТЬ ГРАДИЕНТНОЕ ЗАТЕМНЕНИЕ: */
    background: url('https://i.postimg.cc/v8CtDbVS/IMG-5492-5-edited-free-carve-photos.png');
    background-size: cover;
    background-position: center;
    position: relative;
    
    /* ДОБАВИТЬ КОРРЕКЦИЮ ЯРКОСТИ: */
    filter: brightness(0.9);}

.image-overlay {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background: rgba(22, 27, 34, 0.7);
}

.image-overlay p {
    font-size: 1.2rem;
    color: #e6edf3;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Стиль для невалидного ввода */
input[aria-invalid="true"] {
    border: 2px solid #f85149;
    background-color: rgba(248, 81, 73, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Анимация "тряски" при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Адаптация для мобильных устройств */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    .auth-container, .customer-image {
        width: 100%;
    }
    
    .customer-image {
        height: 300px;
    }
    
    .auth-container {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid #30363d;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
    
    .logo-header h1 {
        font-size: 2rem;
    }
    
    input, button {
        padding: 0.9rem;
    }
}