/* ===== Страница регистрации организации ===== */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
}

.card {
    border: none;
    border-radius: 12px;
}

.card .card-body {
    padding: 2rem;
}

.card h3 {
    font-weight: 600;
    color: #212529;
}

.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.text-danger {
    font-weight: 700;
}

.alert ul {
    padding-left: 1.2rem;
}

.btn-primary {
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Ссылка «Войти» */
.text-center a {
    text-decoration: none;
    font-weight: 500;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .card .card-body {
        padding: 1.25rem;
    }
}

/* Выпадающий список подсказок DaData */
.suggestions-dropdown {
    position: absolute;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestions-dropdown.active {
    display: block;
}

.suggestions-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestions-item:hover,
.suggestions-item.highlighted {
    background: #f0f7ff;
}

.suggestions-item:last-child {
    border-bottom: none;
}

.suggestions-item .org-name {
    font-weight: 500;
    color: #212529;
}

.suggestions-item .org-inn {
    font-size: 0.85rem;
    color: #6c757d;
}

.suggestions-loading {
    padding: 12px;
    text-align: center;
    color: #6c757d;
}

.suggestions-empty {
    padding: 12px;
    text-align: center;
    color: #dc3545;
}
