/* ================== СТИЛИ СТРАНИЦЫ АВТОРИЗАЦИИ ================== */
/* Система: АвтоМедиаФасад CRM */
/* Версия: 2.0 - Новый дизайн с изоляцией стилей */

/* ================== ГЛАВНЫЙ КОНТЕЙНЕР ================== */
.login-main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #ffffff;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================== СЕКЦИЯ С ФУРОЙ ================== */
.login-main-container .login-left-section {
    flex: 1.2;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-main-container .login-truck-display {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.login-main-container .login-truck-image {
    width: 100%;
    max-width: 950px;
    height: auto;
    margin-bottom: 30px;
}

/* ================== СЕКЦИЯ АВТОРИЗАЦИИ ================== */
.login-main-container .login-right-section {
    flex: 0.8;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ================== ЗАГОЛОВКИ ================== */
.login-main-container .login-company-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.login-main-container .login-cloud-icon {
    font-size: 18px;
    color: #6c757d;
    --fa-primary-color: #6c757d;
    --fa-secondary-color: #adb5bd;
    --fa-secondary-opacity: 0.6;
}

.login-main-container .login-company-subtitle-main {
    font-size: 22px;
    color: #495057;
    font-weight: 500;
}

.login-main-container .login-version-badge {
    font-size: 11px;
    padding: 4px 8px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-weight: 500;
}

.login-main-container .login-subtitle-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 48px;
    font-weight: 400;
    text-align: center;
}

/* ================== ФОРМА АВТОРИЗАЦИИ ================== */
.login-main-container .login-auth-form {
    width: 100%;
    max-width: 400px;
}

.login-main-container .login-form-group {
    margin-bottom: 24px;
    position: relative;
}

.login-main-container .login-form-input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 20px 12px 8px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background: white;
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.login-main-container .login-form-input:focus {
    border-bottom-color: #6c757d;
}

.login-main-container .login-form-label {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 17px;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 4px;
    z-index: 1;
}

.login-main-container .login-form-input:focus + .login-form-label,
.login-main-container .login-form-input:not(:placeholder-shown) + .login-form-label {
    top: -8px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.login-main-container .login-form-input::placeholder {
    color: transparent;
}

/* Автозаполнение браузера */
.login-main-container .login-form-input:-webkit-autofill,
.login-main-container .login-form-input:-webkit-autofill:hover,
.login-main-container .login-form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset;
    -webkit-text-fill-color: #212529;
}

.login-main-container .login-form-input:-webkit-autofill + .login-form-label {
    top: -8px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* Анимация ошибки */
.login-main-container .login-form-input.error {
    border-bottom-color: #dc3545;
    animation: loginShakeInput 0.5s ease-in-out;
}

/* ================== КНОПКА ВХОДА ================== */
.login-main-container .login-form-button {
    width: auto;
    min-width: 200px;
    height: 48px;
    background: #333;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0;
    padding: 0 28px;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.login-main-container .login-form-button:hover {
    background: #222;
}

.login-main-container .login-form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-main-container .login-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: loginSpin 1s linear infinite;
    margin-right: 8px;
}

/* ================== ФУТЕР ФОРМЫ ================== */
.login-main-container .login-form-footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -10px;
    color: #666;
    font-size: 14px;
}

.login-main-container .login-form-footer a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.login-main-container .login-form-footer a:hover {
    text-decoration: underline;
}

.login-main-container .login-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    color: #21a038;
    font-size: 13px;
    gap: 6px;
}

/* ================== ФУТЕР СТРАНИЦЫ ================== */
.login-page-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-page-footer .login-footer-left,
.login-page-footer .login-footer-right {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-page-footer .login-footer-left a,
.login-page-footer .login-footer-right a {
    color: #6c757d;
    text-decoration: none;
}

.login-page-footer .login-footer-left a:hover,
.login-page-footer .login-footer-right a:hover {
    color: #495057;
    text-decoration: underline;
}

/* ================== АНИМАЦИИ ================== */
@keyframes loginShakeInput {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes loginSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================== АДАПТИВНАЯ ВЕРСТКА ================== */
@media (max-width: 768px) {
    .login-page-footer {
        display: none !important;
    }
    
    .login-main-container {
        flex-direction: column;
        height: 100vh;
    }
    
    .login-main-container .login-left-section {
        display: none !important;
    }
    
    .login-main-container .login-right-section {
        flex: 1;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-main-container .login-right-section {
        padding: 15px;
    }
    
    .login-main-container .login-auth-form {
        max-width: 100%;
    }
}

/* ================== СТРАНИЦА БЛОКИРОВКИ ================== */
body.blocked-page {
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #495057 0%, #6c757d 50%, #343a40 100%);
    background-attachment: fixed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.block-container {
    text-align: center;
    max-width: 450px;
    width: 90%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.block-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.block-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-return {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-return:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}