/* login.css — стили страницы входа */

:root {
    --black: #0f0f0f;
    --gold: #D4AF37;
    --dark-gray: #1c1c1c;
    --light-gold: #F0DFA5;
}

* {
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1c1c1c 100%);
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Контейнер формы входа */
.login-container {
    background: var(--dark-gray);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    width: 360px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Анимированный фоновый градиент */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    animation: rotate 6s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Логотип */
.login-container img {
    max-width: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--gold));
    transition: transform 0.3s ease;
}

.login-container img:hover {
    transform: scale(1.05);
}

h2 {
    margin-bottom: 35px;
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--gold);
}

/* Поля ввода */
input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 22px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: var(--black);
    color: var(--gold);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--light-gold);
    box-shadow: 0 0 12px var(--light-gold);
}

.password-field {
    position: relative;
    margin-bottom: 22px;
    z-index: 1;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: none;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    pointer-events: none;
}

.password-toggle .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: block;
}

.password-toggle.is-visible .icon-eye-off {
    display: none;
}

/* Кнопка входа */
.login-container button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #D4AF37, #F0DFA5);
    border: none;
    border-radius: 8px;
    color: var(--black);
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    transition: 0.3s;
}

.login-container button[type="submit"]:hover {
    background: linear-gradient(45deg, #F0DFA5, #D4AF37);
    box-shadow: 0 0 20px rgba(240, 223, 165, 0.9);
}

/* Сообщение об ошибке */
.msg {
    margin-top: 10px;
    color: #ff5555;
    font-weight: bold;
}

/* Подвал */
.footer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gold);
    opacity: 0.7;
}
