html, body {
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important; /* Убирает скролл полностью */
}
form {
    margin-top: 180px !important; /* Регулируй это число: 100px - ниже, 50px - выше */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.regframe {
    margin-top: 150px !important; /* Увеличивай это число, чтобы опустить всё ниже */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
/* ПРИВЕТСТВИЕ (Привет, Dmitry!) */
.user-greeting-top {
    color: #FFD700 !important;      /* Золотой цвет под рамку */
    font-size: 36px !important;     /* Сделали КРУПНО */
    font-weight: 900 !important;    /* Максимальная жирность */
    text-align: center !important;
    display: block !important;
    
    /* ЭФФЕКТ ОБЪЕМА И ЧИТАЕМОСТИ */
    text-shadow: 3px 3px 5px #000, 
                 0 0 15px rgba(255, 215, 0, 0.5) !important;
    
    margin-top: 50px !important;    /* Отступ от верха экрана */
    margin-bottom: 50px !important; /* ОГРОМНЫЙ ОТСТУП, чтобы разлепить с формой */
}

/* КНОПКА С Ichigo" */
.loud-link-hover-avatar {
    /* Можно добавить небольшой отступ сверху, если нимб будет касаться края */
    margin-top: -5px; 
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.9);
    background: #FFD700 url('MobileAuthPic.jpg') no-repeat center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.4s ease-in-out;
    box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.6);
}
/* КНОПКА С Ichigo" */
.loud-link-hover-avatar {
    position: relative; /* ОБЯЗАТЕЛЬНО: база для подсказки */
    margin-top: -5px; 
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.9);
    background: #000 url('MobileAuthPic.jpg') no-repeat center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.4s ease-in-out;
    box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.6);
}

/* МАГИЯ DATA-HINT (ВЫЛЕТ ТЕКСТА) */
.loud-link-hover-avatar:hover::after {
    content: attr(data-hint); /* Берем текст из PHP */
    position: absolute;
    bottom: 110px; /* Дистанция над головой Ichigo */
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap; /* Чтобы текст не переносился */
    z-index: 9999;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    pointer-events: none; /* Чтобы мышка не цеплялась за подсказку */
}

/* МАЛЕНЬКИЙ ЗОЛОТОЙ ТРЕУГОЛЬНИК (СТРЕЛОЧКА) */
.loud-link-hover-avatar:hover::before {
    content: "";
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #FFD700; /* Стрелочка вниз */
    z-index: 9999;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ НА САМУ КНОПКУ */
.loud-link-hover-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #FFD700, 0 0 50px rgba(255, 215, 0, 0.8);
}


/* Убираем лишние отступы у заголовков, чтобы они не разлетались */
.regframe h1, 
.regframe b, 
.regframe h2 {
    margin: 10px 0 !important; /* Небольшой отступ между строчками текста */
    padding: 0 !important;
}
/* Даем отступ самому приветствию, чтобы оно не прилипало к верхнему краю браузера */
h2, .welcome-text {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}
.mainframe {
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Прижимаем контент к верху */
    align-items: center !important;
    padding-top: 5vh !important; /* Отступ сверху для "Привет, Dmitry" */
}

.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 1. РАЗЛЕПЛЯЕМ ПРИВЕТСТВИЕ И ПОДПИСЬ */
.user-greeting-top {
    display: block !important;
    margin-top: 100px !important;    /* Спускаем "Привет" ниже от верха браузера */
    margin-bottom: 40px !important;  /* СОЗДАЕМ ДИСТАНЦИЮ до следующей строки */
    text-align: center !important;
    width: 100% !important;
}

/* 2. ОПУСКАЕМ ТЕКСТ "ВВЕДИТЕ ВАШИ ДАННЫЕ" */
.panel-label {
    display: block !important;
    margin-top: 20px !important;     /* Отталкиваемся от "Привета" */
    margin-bottom: 30px !important;  /* Создаем зазор ДО ячеек ввода */
    text-align: center !important;
    color: #ffd700 !important;
}

/* 3. ОПУСКАЕМ САМУ ФОРМУ (Ячейки и кнопку) */
.horizontal-form {
    margin-top: 20px !important;     /* Чтобы ячейки не липли к тексту выше */
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;            /* Расстояние между ячейками и кнопкой ВОЙТИ */
}

/* 4. УБИРАЕМ СКЛЕЙКУ У КОНТЕЙНЕРА */
.login-panel-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;         /* Чтобы контейнер не сжимал их в одну кучу */
}



.horizontal-form {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 25px;
    border: 1px solid #ffd700;
    border-radius: 12px;
}

.colortext {
    background: #fff !important;
    border: 1px solid #ffd700 !important;
    color: #000;
    padding: 10px;
    font-size: 16px;
    width: 150px;
}

.btn-submit {
    background: #b10000;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}
.footer-nav, .footer-link-item {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Если ссылки в разных блоках (лево/право) */
.footer-left {
    text-align: left !important;
    flex: 1 !important;
}


.site-footer {
    position: fixed !important;
    bottom: 10px !important; /* Небольшой отступ от самого края */
    left: 50% !important;
    transform: translateX(-50%) !important; /* Центровка по горизонтали */
    width: 95% !important;
    max-width: 1100px !important;
    z-index: 9999 !important; /* Чтобы всегда был поверх фона */
}
.regframe {
    margin-top: -150px !important; /* Увеличивай это число (например, до 100px), чтобы опустить еще ниже */
}

/* Чтобы "Привет, Dmitry!" не слипался с кнопками, дадим ему отступ снизу */
h1 {
    margin-bottom: 20px !important;
}
/* На всякий случай добавим отступ снизу основному блоку, 
   чтобы футер не перекрыл кнопки на маленьких мониторах */


/* 3. ПОЧТА И ГОРОД СПРАВА (КРУПНО И БЕЛО) */
.footer-right {
    text-align: right !important; /* Всё вправо */
    color: #ffffff !important;
    font-size: 18px !important;   /* Крупная почта */
}

.footer-email {
    color: #ffffff !important;
    font-size: 20px !important; /* Сделал еще крупнее, как просил */
    font-weight: bold !important;
    margin-bottom: 5px !important;
}

.f-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;     /* ТЕКСТ ВПРАВО */
    text-align: right;
}

.f-email { font-size: 18px; font-weight: bold; color: #fff; }
.f-copy { font-size: 12px; color: #888; }


.f-left-side {
    text-align: left;
    flex: 1; /* Занимает свободное место слева */
}

.f-right-side {
    text-align: right;
    flex: 1; /* Занимает свободное место справа */
}
/* 2. ССЫЛКИ СЛЕВА (ДРУГ НАД ДРУГОМ) */
.f-links-left {
    display: flex !important;
    flex-direction: column !important; /* Ставим в столбик */
    align-items: flex-start !important; /* Прижимаем влево */
    gap: 10px !important;              /* Расстояние между ссылками */
}

/* Убираем лишние отступы у самих ссылок */
.f-link {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
/* Убираем рамки и тени у внутреннего контейнера */
#footer-inside {
    display: flex !important;
    justify-content: space-between !important; /* Это раскинет лево и право */
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}


/* 1. ДЕЛАЕМ ВЕСЬ ТЕКСТ СЛЕВА ЯРКО-БЕЛЫМ */
.footer-left, 
.footer-left p, 
.footer-left strong {
    color: #ffffff !important;   /* Чисто белый цвет */
    opacity: 1 !important;       /* Убираем прозрачность */
    font-size: 16px !important;  /* Сделаем чуть крупнее для читаемости */
    text-align: left !important;
    display: block !important;
    margin-bottom: 5px !important;
    background: transparent !important; /* Чтобы не было черных рамок вокруг букв */
}

/* 2. ВЫДЕЛЯЕМ НОМЕР КАРТЫ ЗОЛОТЫМ (по желанию) */
.footer-left strong {
    color: #FFD700 !important;   /* Золотой, как рамка */
}


/* 1. ЦВЕТ И ОБЪЕМ ДЛЯ ССЫЛОК */
.f-link {
    color: #808000 !important;   /* Насыщенный ОЛИВКОВЫЙ */
    font-size: 22px !important;  /* Сделали БОЛЬШЕ (было 18px) */
    font-weight: 900 !important; /* Максимальная ЖИРНОСТЬ для объема */
    text-transform: uppercase;   /* Заглавные буквы (по желанию) */
    text-decoration: none !important;
    
    /* ЭФФЕКТ ОБЪЕМА (Тень под буквами) */
    text-shadow: 2px 2px 0px #000, 
                 3px 3px 5px rgba(0,0,0,0.8) !important;
    
    transition: 0.3s ease !important;
    display: inline-block !important;
}

/* 2. ЭФФЕКТ ПРИ НАВЕДЕНИИ МЫШКОЙ */
.f-link:hover {
    color: #bab86c !important;   /* Светло-оливковый при наведении */
    transform: scale(1.1);       /* Ссылка чуть увеличивается */
    text-shadow: 0px 0px 10px #808000 !important; /* Оливковое свечение */
}

/* 3. ПОПРАВИМ ОТСТУП СЛЕВА (раз они теперь крупные) */
.footer-left {
    padding-left: 10px !important;
}
.regframe {
    margin-top: 10vh !important; /* Поднимает блок с вводом еще выше */
}

/* Заголовок над полями ввода */
.regframe b, .regframe h2 {
    margin-bottom: 20px !important;
    display: block !important;
}

/* 1. ПЕРЕКРАШИВАЕМ КНОПКУ В ОЛИВКОВЫЙ */
.horizontal-form button, 
.horizontal-form input[type="submit"] {
    background: linear-gradient(180deg, #808000 0%, #556b2f 100%) !important; /* Оливковый градиент */
    border: 2px solid #FFD700 !important; /* Золотая рамка под стиль сайта */
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 10px 25px !important;
    border-radius: 5px !important;
    cursor: pointer;
    
    /* ЭФФЕКТ ОБЪЕМА (Тень снизу как у кнопки) */
    box-shadow: 0 4px 0 #3b4d1c, 0 5px 10px rgba(0,0,0,0.5) !important;
    transition: 0.2s ease !important;
}

/* 2. ЭФФЕКТ ПРИ НАЖАТИИ (Кнопка "вдавливается") */
.horizontal-form button:hover {
    background: #6b8e23 !important; /* Чуть светлее при наведении */
}

.horizontal-form button:active {
    transform: translateY(3px) !important; /* Смещение вниз при клике */
    box-shadow: 0 1px 0 #3b4d1c !important; /* Тень уменьшается */
}
