.login-container {
    justify-content: space-around;
    display: flex;
    margin: auto;
    max-width: 1100px;
    padding: 40px 20px;
    width: 100%;
    height: 100%;
}

.login-form-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    max-height: max-content;
    padding: 40px;
    margin: auto;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 15px 0 5px;
}

.modal-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.modal-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 14px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.modal-divider:not(:empty)::before {
    margin-right: .8em;
}

.modal-divider:not(:empty)::after {
    margin-left: .8em;
}


.tg-bot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: var(--tg-bg);
    border: 1px solid var(--tg-border);
    border-radius: 12px;
    color: var(--tg-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box;
}

.tg-bot-btn:hover {
    background-color: var(--tg-hover-bg);
    border-color: var(--tg-color);
    transform: translateY(-1px);
}

.tg-bot-btn svg {
    transition: transform 0.3s ease;
}

.tg-bot-btn:hover svg {
    transform: translateX(2px) translateY(-1px);
}

.form-group {
    margin-bottom: 25px;
}

.label {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.input-field {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    color: var(--accent);
    font-size: 1rem;
    font-family: 'Monaco', monospace;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.input-field:-webkit-autofill {
    width: 100%;
    background-color: #000 !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    color: var(--accent) !important;
    font-size: 1rem;
    font-family: 'Monaco', monospace;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: var(--accent);
}

select.input-field {
    cursor: pointer;
    appearance: none;
}

.login-go-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-go-btn:hover {
    background: #ffb121;
    /* background: #ff21d3; */
    transform: translateY(-2px);
}

.input-field.error {
    border-color: #ff4d4d !important;
    color: #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
    animation: shake 0.4s ease-in-out;
}

.input-field.success {
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

/* Анимация тряски при ошибке */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Сообщение об ошибке под инпутом (опционально) */
.error-text {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    text-align: left;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: black;
    box-shadow: 0 10px 20px rgba(245, 159, 0, 0.2);
}

/* Базовые стили кнопки остаются прежними */
.theme-toggle-btn {
    width: 32px;
    height: 32px;
    cursor: pointer;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 0;
    outline: none;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.theme-icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- НОВОЕ: Иконка Идеального Солнца (точная геометрия) --- */
.theme-icon {
    /* Цвет #FFB74D — теплый оранжевый, как в референсе */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFB74D"><circle cx="12" cy="12" r="5"/><circle cx="12" cy="3" r="1.5"/><circle cx="12" cy="21" r="1.5"/><circle cx="3" cy="12" r="1.5"/><circle cx="21" cy="12" r="1.5"/><circle cx="5.64" cy="5.64" r="1.5"/><circle cx="18.36" cy="18.36" r="1.5"/><circle cx="5.64" cy="18.36" r="1.5"/><circle cx="18.36" cy="5.64" r="1.5"/></svg>');
}

/* Иконка Луны (Indigo Moon) - оставляем, она хороша */
[data-theme="light"] .theme-icon {
    /* Цвет #7986CB — приглушенный синий */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237986CB" stroke="%237986CB" stroke-width="1" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>');

    transform: rotate(-15deg);
}

/* Анимация при нажатии */
.theme-toggle-btn:active {
    transform: scale(0.9);
}