/* Стили для страниц авторизации */

:root {
    --terminal-green: #00ff00;
    --terminal-green-bright: #33ff33;
    --dark-bg: #0a0a0a;
    --card-bg: #111;
    --text-bright: #ffffff;
    --text-medium: #cccccc;
    --text-muted: #999999;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--dark-bg);
    background: 
        linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)),
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03),
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 20px
        );
    color: var(--text-bright);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Загрузочный экран */
#loading-screen {
    background: #000;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Терминальная карточка */
.terminal-card {
    background: rgba(0, 10, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    border: 1px solid var(--terminal-green) !important;
    position: relative;
    overflow: hidden;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Терминальные точки */
.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* Заголовки карточек */
.card-header {
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid var(--terminal-green) !important;
    padding: 1.5rem;
}

.card-footer {
    background: rgba(0, 0, 0, 0.8) !important;
    border-top: 1px solid var(--terminal-green) !important;
    padding: 1rem;
}

/* Формы */
.form-control {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--terminal-green) !important;
    color: var(--terminal-green) !important;
    font-family: 'Courier New', monospace;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(0, 20, 0, 0.8) !important;
    border-color: var(--terminal-green-bright) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25) !important;
    color: var(--terminal-green-bright) !important;
}

.form-control::placeholder {
    color: rgba(0, 255, 0, 0.5) !important;
}

.input-group-text {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--terminal-green) !important;
    color: var(--terminal-green) !important;
}

/* Метки форм */
.form-label {
    color: var(--text-medium) !important;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

/* Чекбоксы */
.form-check-input {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--terminal-green) !important;
}

.form-check-input:checked {
    background-color: var(--terminal-green) !important;
    border-color: var(--terminal-green) !important;
}

.form-check-label {
    color: var(--text-medium) !important;
    font-size: 0.9rem;
}

.form-check-label a {
    color: var(--terminal-green) !important;
    text-decoration: none;
}

.form-check-label a:hover {
    color: var(--terminal-green-bright) !important;
    text-decoration: underline;
}

/* Алерты */
.terminal-alert {
    border: 1px solid !important;
    border-radius: 0 !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 12px 15px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    color: #f8d7da !important;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1) !important;
    border-color: #198754 !important;
    color: #d1e7dd !important;
}

/* Кнопки терминала */
.terminal-btn {
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 15px 20px;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terminal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.terminal-btn:hover::before {
    left: 100%;
}

.btn-success {
    background: var(--terminal-green);
    border-color: var(--terminal-green);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.btn-success:hover {
    background: #00cc00;
    border-color: #00cc00;
    color: #000 !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.btn-outline-success {
    color: var(--terminal-green);
    border-color: var(--terminal-green);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--terminal-green);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.btn-dark {
    background: rgba(33, 37, 41, 0.8) !important;
    border-color: var(--text-muted) !important;
    color: var(--text-medium) !important;
}

.btn-dark:hover {
    background: rgba(50, 50, 50, 0.9) !important;
    border-color: var(--text-medium) !important;
    color: var(--text-bright) !important;
    transform: translateY(-2px);
}

/* Терминальные логи */
.terminal-logs {
    z-index: 1000;
}

.terminal-log {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.terminal-log:last-child {
    opacity: 1;
    color: var(--terminal-green);
}

/* Адаптивность */
@media (max-width: 768px) {
    .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }
    
    .card {
        margin: 1rem;
    }
    
    .terminal-card {
        margin: 0.5rem;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 1rem !important;
    }
    
    .terminal-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .form-control, .input-group-text {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .terminal-logs {
        display: none !important;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--terminal-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Глитч эффект для заголовков */
.glitch-text {
    position: relative;
    animation: glitch-anim 5s infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

/* Мерцающий курсор */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Ссылки */
a {
    color: var(--terminal-green);
    text-decoration: none;
}

a:hover {
    color: var(--terminal-green-bright);
    text-decoration: underline;
}

/* Прогресс бар */
.progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    background: var(--terminal-green);
    transition: width 0.3s ease;
}