* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0b0d;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Цветные пятна на фоне сняты: страница входа в том же монохроме, что и
   всё приложение (24.09). Разметку не трогаем — просто не показываем. */
.bg-gradient {
    display: none;
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.bg-gradient-1 {
    background: #2a2b31;
    top: -200px;
    right: -200px;
}

.bg-gradient-2 {
    background: #2a2b31;
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(5deg); }
    50% { transform: translate(0, 100px) rotate(0deg); }
    75% { transform: translate(-50px, 50px) rotate(-5deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #121316;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: none;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

/* Без свечения: цветной ореол вокруг знака — единственное цветное пятно
   на монохромной странице. */
.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.login-title {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: #85878e;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #a3a5ab;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #15161a;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    color: #f4f4f5;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .24);
    box-shadow: none;
}

.form-input::placeholder {
    color: #52525b;
}

.btn-login {
    width: 100%;
    padding: 16px;
    /* Главная и единственная кнопка — белая с тёмной подписью, как во всём
       приложении. calm.css сюда не подключается, поэтому цвета прямо. */
    background: #f4f4f5;
    border: none;
    border-radius: 8px;
    color: #111215;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-login:hover {
    background: #ffffff;
    transform: none;
    box-shadow: none;
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* «Вы вышли из системы» и прочие справки — спокойная серая плашка. Без
   своего стиля такое сообщение выходило тёмным текстом на тёмном фоне. */
.alert-info,
.alert-debug {
    background: #15161a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    text-align: center;
}

.alert-warning {
    background: rgba(224, 163, 60, 0.12);
    border: 1px solid rgba(224, 163, 60, 0.3);
    color: #f0c27a;
}

.footer-text {
    text-align: center;
    color: #52525b;
    font-size: 12px;
    margin-top: 24px;
}

/* iPhone увеличивает страницу при фокусе на поле со шрифтом меньше 16px */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        input { font-size: 16px !important; }
    }
}
