﻿/* ----- Глобальные стили (тёмно-золотая палитра) ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #0d0d0d;
    color: #e6e6e6;
    align-items:center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto; /* растягивается, прижимая футер к низу */
    padding: 20px;
    /* для центрирования контента внутри можно использовать flex,
       но это уже зависит от конкретной страницы */
}

/* ----- Карточка авторизации ----- */
.login-card {
    max-width: 420px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 40px 32px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: 0.3s ease;
}

.login-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 20px;
}

/* ----- Форма ----- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #c0c0c0;
        letter-spacing: 0.5px;
    }

    .form-group input {
        padding: 14px 18px;
        background: #0d0d0d;
        border: 1px solid #333;
        border-radius: 12px;
        color: #e6e6e6;
        font-size: 1rem;
        transition: 0.3s ease;
        outline: none;
    }

        .form-group input:focus {
            border-color: #d4af37;
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
        }

        .form-group input::placeholder {
            color: #666;
        }

/* ----- Кнопка "Войти" ----- */
.login-btn {
    padding: 14px;
    background: #d4af37;
    color: #0d0d0d;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}

    .login-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
    }

    .login-btn:active {
        transform: scale(0.98);
    }

/* ----- Текст-ссылка "Забыли..." ----- */
.forgot-link {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    margin: 12px 0 16px;
}

    .forgot-link a {
        color: #d4af37;
        text-decoration: none;
        font-weight: 500;
        transition: 0.2s;
        border-bottom: 1px dashed transparent;
    }

        .forgot-link a:hover {
            border-bottom-color: #d4af37;
        }

/* ----- Разделитель ----- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #555;
    font-size: 0.85rem;
    margin: 8px 0 12px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #333;
    }

/* ----- Кнопка Яндекс ID (форма) ----- */
.yandex-form {
    display: block;
    width: 100%;
}

.yandex-btn {
    width: 100%;
    padding: 14px;
    background: #f5f0e8; /* молочный фон, как у неактивных кнопок объёма */
    color: #222;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .yandex-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
        background: #f5f0e8;
    }

    .yandex-btn:active {
        transform: scale(0.98);
    }

/* ----- Иконка Яндекса (SVG) ----- */
.yandex-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ----- Адаптивность ----- */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .login-btn,
    .yandex-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-group input {
        padding: 12px 14px;
    }
}

/* Убираем стандартный стиль кнопки внутри формы */
.yandex-form button {
    width: 100%;
}

.home-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #d4af37;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: 0.3s ease;
    z-index: 1000; /* Поверх всех элементов */
    cursor: pointer;
}

    .home-button:hover {
        background: #d4af37;
        color: #0d0d0d;
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }

    .home-button:active {
        transform: scale(0.95);
    }

/* Адаптивность */
@media (max-width: 768px) {
    .home-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .home-button {
        bottom: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
    }
}

/* ----- Футер (тёмно-золотая палитра) ----- */
.footer {
    width: 100%;
    flex-shrink: 0;
    background: #0d0d0d;
    border-top: 2px solid #d4af37;
    padding: 40px 30px 20px;
    margin-top: 40px;
    color: #c0c0c0;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
}

.brand-name {
    letter-spacing: 1px;
}

.footer-inn,
.footer-company {
    font-size: 0.95rem;
    color: #aaa;
}

.footer-heading {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.footer-phone,
.footer-contact,
.footer-email {
    font-size: 0.95rem;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .footer-phone::before {
        content: "📞";
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
    }

    .footer-email::before {
        content: "📧";
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
    }

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .footer {
        padding: 30px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-phone,
    .footer-email,
    .footer-contact {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}
/* ----- Виджет VK ID 3 в 1 (тёмно-золотая стилистика) ----- */
/*.vk-auth-wrapper {
    margin-top: 16px;
    padding: 8px;
    background: #0d0d0d;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
}

#vk-widget-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    justify-content: center;
}

    /* Переопределяем стили кнопок внутри виджета */
/*    #vk-widget-container .VkIdWebSdk__button {
        border-radius: 30px !important;
        background: #1a1a1a !important;
        border: 1px solid #d4af37 !important;
        transition: all 0.3s ease !important;
    }

        #vk-widget-container .VkIdWebSdk__button:hover {
            transform: translateY(-2px) scale(1.02) !important;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4) !important;
        }

        #vk-widget-container .VkIdWebSdk__button .VkIdWebSdk__button__icon {
            filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
        }

/* Сообщение об ошибке */
/*#vk-error-message {
    display: none;
    color: #f28b82;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid #f28b82;
}*/