/* Стили для страницы входа */

:root {
    --primary-color: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #00003d;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --light-color: #f8f9fc;
    --border-color: #e3e6f0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-page {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-info {
    width: 40%;
    padding: 3rem 2rem;
    background: var(--light-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo {
    font-size: 4rem;
    opacity: 0.9;
}

.login-info h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.description {
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.system-info {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.system-info p {
    margin: 0.3rem 0;
}

.login-form-container {
    width: 60%;
    padding: 3rem;
    background: white;
}

.login-form h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.15);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.alert {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 74, 59, 0.2);
}

.alert-warning {
    background-color: rgba(246, 194, 62, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(246, 194, 62, 0.2);
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(28, 200, 138, 0.2);
}

.alert-info {
    background-color: rgba(26, 35, 126, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(26, 35, 126, 0.2);
}

.alert-maintenance {
    text-align: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
    border: none;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-maintenance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 53, 69, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.alert-maintenance i {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.alert-maintenance strong {
    display: inline-block;
    color: rgba(220, 53, 69, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.alert-maintenance span {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(220, 53, 69, 0.7);
}

.alert i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
    }

    .login-info,
    .login-form-container {
        width: 100%;
        padding: 2rem;
    }

    .login-info {
        padding-bottom: 3rem;
    }

    .logo {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .login-container {
        border-radius: 15px;
    }

    .login-info,
    .login-form-container {
        padding: 1.5rem;
    }
}

/* Неоновая сетка */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(135, 206, 250, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 250, 0.15) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center center;
    z-index: 0;
    animation: gridFlicker 8s infinite;
}

/* Иконки в ячейках */
.grid-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-icon {
    position: absolute;
    color: rgba(135, 206, 250, 0.7);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(135, 206, 250, 0.8);
    transition: opacity 0.5s ease-in-out;
}

/* Анимация мерцания сетки */
@keyframes gridFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Анимация мерцания иконок */
@keyframes iconFlicker {
    0%, 100% { 
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(135, 206, 250, 0.8);
    }
    50% { 
        opacity: 0.3;
        text-shadow: 0 0 5px rgba(135, 206, 250, 0.4);
    }
}

.maintenance-time-box {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 0.25rem;
    background-color: rgba(220, 53, 69, 0.05);
    font-size: 0.9rem;
    color: rgba(220, 53, 69, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-time-box i {
    font-size: 1rem;
    margin: 0;
    animation: none;
    color: rgba(220, 53, 69, 0.9);
}

.alert i.fa-tools {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Стиль для текста "Плановое окончание:" */
.maintenance-time-box strong {
    color: rgba(220, 53, 69, 0.9);
    font-weight: 600;
}

/* Блок обслуживания */
.maintenance-alert {
    background: rgba(255, 236, 239, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.15);
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: pulse 2s infinite;
}

.maintenance-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.maintenance-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.25rem;
}

.maintenance-icon i {
    animation: spin 3s linear infinite;
}

.maintenance-title h3 {
    color: #dc3545;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.maintenance-title p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

.maintenance-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #dc3545;
    font-size: 0.85rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Стили для уведомлений с кнопками */
.alert-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.alert-message {
    flex: 1;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.alert .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.alert .btn:hover {
    transform: translateY(-1px);
}

/* Стили для модального окна контактов */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.contact-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Адаптивность для модального окна */
@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .contact-item i {
        align-self: flex-start;
    }
} 