/* =============================================
   BASE.CSS — Базовые стили, формы входа
   ============================================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainApp {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.container {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid #ccc;
    padding: 20px;
    width: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.inside-container {
    display: grid;
    background: white;
    padding: 1.5rem;
    gap: 12px;
    border-radius: 6px;
}

h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color: #2c3e50;
}

.input-signin {
    background: rgb(255, 255, 230);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

.input-signin:focus {
    border-color: #3498db;
}

.btn-signin {
    padding: .7rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn-signin:hover {
    background: #2980b9;
}

.link-toggle {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    text-decoration: none;
    cursor: pointer;
}

.link-toggle:hover {
    text-decoration: underline;
}

/* Глобальный сброс outline */
button,
input,
textarea,
button:focus,
input:focus,
.btn-save-inline:focus,
.btn-close-modal:focus,
#btnCreateChannel:focus {
    outline: none !important;
}
