/**
 * Вхід у панель і сторінки помилок.
 *
 * Сторінка без шапки, тож тло несе всю атмосферу: нічне табло з янтарним
 * світлом згори. Карта входу стоїть на ньому як освітлений щит чергового.
 */

body {
    background:
        radial-gradient(120% 70% at 50% 0%, var(--amber-soft) 0%, rgba(0, 0, 0, 0) 62%),
        var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}

.login-container,
.error-container {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--amber);
    border-radius: var(--r);
    padding: 40px 34px;
    box-shadow: var(--shadow);
    max-width: 480px;
    width: 100%;
    animation: fadeIn .4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* Тут .logo — не посилання в шапці, а знак над формою */
.logo {
    display: block;
    text-align: center;
    font-size: 46px;
    line-height: 1;
    margin-bottom: 16px;
}

h1 {
    text-align: center;
    color: var(--bone);
    font-size: 26px;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: var(--mute);
    font-size: 15px;
    margin-bottom: 30px;
}

/* Кнопка входу на всю ширину — під нею такої ж ширини кнопка Google */
.submit-btn { width: 100%; }

/* PIN — чотири цифри, тож моноширинним і врозбивку */
.pin-input {
    text-align: center;
    font-family: var(--data);
    font-size: 22px;
    letter-spacing: 10px;
}

/* Помилка входу: та сама смуга збоку, що в .alert */
.error {
    padding: 13px 16px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--alarm);
    border-radius: var(--r);
    background: var(--alarm-soft);
    color: var(--bone);
    font-size: 14px;
    margin-bottom: 22px;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
}
.telegram-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* «або» між PIN і Google */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    font-family: var(--data);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mute);
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

/* Інструкція «як отримати PIN» */
.instruction {
    background: var(--panel-2);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: 22px;
    margin-bottom: 26px;
    text-align: left;
}

.instruction h3 {
    color: var(--bone);
    font-size: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 14px;
}

.step-number {
    background: transparent;
    border: 1px solid var(--amber);
    color: var(--amber);
    width: 28px;
    height: 28px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--data);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-text {
    color: var(--bone);
    font-size: 15px;
    line-height: 1.55;
    padding-top: 2px;
}

.bot-username {
    font-family: var(--data);
    background: var(--amber-soft);
    color: var(--amber);
    padding: 2px 7px;
    border-radius: var(--r);
    font-size: 14px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.error-details {
    background: var(--amber-soft);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--amber);
    border-radius: var(--r);
    padding: 14px 16px;
    margin-bottom: 24px;
    color: var(--bone);
    font-size: 14px;
}

.note {
    color: var(--mute);
    font-size: 13px;
    margin-top: 18px;
    line-height: 1.6;
    text-align: center;
}

/* Вхід через Google: кнопка лишається взнаваною (світла, з логотипом) */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: var(--r);
    color: #3c4043;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.google-btn:hover { background: #f1f3f4; border-color: #c6c9cd; }

.google-icon { width: 19px; height: 19px; flex: 0 0 19px; }

@media (max-width: 480px) {
    .login-container,
    .error-container { padding: 32px 20px; }
    h1 { font-size: 22px; }
    .logo { font-size: 40px; }
}
