/* ====== RESET ====== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #1E1E1E;
    color: #EAEAEA;
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
}

/* ====== УБРАТЬ КРУЖОЧКИ ====== */

ul, li {
    list-style: none;
}

/* ====== HEADER ====== */

header {
    background: #1E1E1E;
    border-bottom: 1px solid #2F2F2F;
    padding: 16px 0;
}

.index-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 44px;
    height: 44px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====== NAV BUTTONS ====== */

.sign-button,
.registration-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.sign-button {
    background: transparent;
    border: 2px solid #9F7BFF;
    color: #9F7BFF;
}

.sign-button:hover {
    background: #9F7BFF;
    color: #1E1E1E;
}

.registration-button {
    background: #7A3FFF;
    color: white;
}

.registration-button:hover {
    background: #6A2FEF;
}

/* ====== ГЛАВНЫЙ КОНТЕЙНЕР ====== */

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

/* ====== ФОРМЫ — КРАСИВЫЕ, СОВРЕМЕННЫЕ ====== */

.form-div {
    background: #2A2A2A;
    padding: 36px 40px;
    border-radius: 14px;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

/* ====== ТЕКСТ В ФОРМАХ ====== */

.form-div h2 {
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 22px;
}

/* ====== ПОЛЯ ВВОДА — АККУРАТНЫЕ ====== */

.form-element {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 7px;
    border: 2px solid #3A3A3A;
    background: #333333;
    color: #EAEAEA;
    font-size: 15px;
    transition: 0.2s;
}

.form-element:focus {
    border-color: #7A3FFF;
    background: #3A3A3A;
    outline: none;
}

/* ====== КНОПКИ — КРАСИВЫЕ, НЕ ГИГАНТСКИЕ ====== */

.button {
    width: 100%;
    padding: 11px;
    border-radius: 7px;
    border: none;
    background: #7A3FFF;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.button:hover {
    background: #6A2FEF;
}

/* ====== ДВЕ КНОПКИ РЯДОМ ====== */

.buttons-div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.forgotten-cancel-button,
.forgotten-reset-button {
    flex: 1;
    padding: 11px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* Cancel */
.forgotten-cancel-button {
    background: #444;
    color: #EAEAEA;
}

.forgotten-cancel-button:hover {
    background: #555;
}

/* Reset */
.forgotten-reset-button {
    background: #7A3FFF;
    color: white;
}

.forgotten-reset-button:hover {
    background: #6A2FEF;
}

/* ====== ОШИБКИ ====== */

.text-danger {
    color: #FF4F6D;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ====== ГЛАВНАЯ СТРАНИЦА ====== */

.index-form-div {
    background: #2A2A2A;
    padding: 40px 45px;
    border-radius: 14px;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

.index-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.index-subtitle {
    font-size: 17px;
    margin-bottom: 22px;
    color: #CFCFCF;
}

.Register-or-sign-buttons li {
    margin-bottom: 12px;
}

.Register-or-sign-buttons button {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    border-radius: 7px;
}
.google-button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    max-width: 420px;

    padding: 12px 16px;
    border-radius: 6px;

    background: #161821FF;
    border: 1px solid;

    font-size: 16px;
    font-weight: 500;
    color: #444;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;

    transition: background 0.2s, box-shadow 0.2s;
}

.google-button img {
    width: 20px;
    height: 20px;
}

.google-button:hover {
    background: #1D2030FF;
    box-shadow: 0 1px 3px;
}
.form-element-forgot {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.blocked-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

/* Иллюстрация */
.blocked-illustration {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
}

.blocked-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ff5c5c33, #ff5c5c11, transparent);
    filter: blur(12px);
    opacity: 0.7;
}

.blocked-icon {
    position: relative;
    width: 100%;
    height: 100%;
    animation: iconFloat 3s ease-in-out infinite;
}

/* Заголовок */
.blocked-page h1 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

/* Текст */
.blocked-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text);
}

.blocked-text.muted {
    color: var(--text-muted);
}

/* Кнопка */
.blocked-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 20px;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.blocked-btn:hover {
    background: var(--accent-hover);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes iconFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {

    /* HEADER */
    .index-header {
        padding: 0 20px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .nav-buttons {
        gap: 10px;
    }

    .sign-button,
    .registration-button {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 7px;
    }

    /* FORM CONTAINER */
    .container {
        padding: 40px 16px;
    }

    .form-div,
    .index-form-div {
        width: 100%;
        max-width: 420px;
        height: auto;
        padding: 28px 30px;
        border-radius: 12px;
    }

    .form-div h2,
    .index-title {
        font-size: 20px;
    }

    .index-subtitle {
        font-size: 15px;
    }

    /* INPUTS */
    .form-element {
        padding: 10px 12px;
        font-size: 14px;
        margin-bottom: 14px;
    }

    /* BUTTONS */
    .button,
    .registration-button,
    .sign-button {
        padding: 10px;
        font-size: 14px;
    }

    .google-button {
        padding: 10px 14px;
        font-size: 15px;
    }

    .google-button img {
        width: 18px;
        height: 18px;
    }

    .buttons-div {
        gap: 10px;
    }

    .forgotten-cancel-button,
    .forgotten-reset-button {
        padding: 10px;
        font-size: 14px;
    }
}

