/* Орбита — страница авторизации */

html.auth-html,
html.auth-html body.auth-body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.auth-bg-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    z-index: 0;
}

.auth-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.auth-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.auth-page {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    overflow: hidden;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 32px;
    color: #e8edf5;
    background:
        linear-gradient(180deg, rgba(22, 30, 48, 0.88) 0%, rgba(14, 20, 34, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.15);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.6px, transparent 0.6px);
    background-size: 3px 3px;
    opacity: 0.45;
    pointer-events: none;
}

/* --- Брендинг --- */
.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-logo {
    display: block;
    width: auto;
    height: 112px;
    max-width: 100%;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(59, 130, 246, 0.32));
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(59, 130, 246, 0.2);
}

.auth-subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #7b8ba3;
}

/* --- Поля --- */
.auth-form {
    position: relative;
    z-index: 1;
    margin: 0;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #c8d0dc;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
}

.auth-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
    color: #5c6b82;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(8, 12, 22, 0.65);
    color: #f0f4fa;
    font-size: 14px;
    font-family: inherit;
    line-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: #5c6b82;
    opacity: 1;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(8, 12, 22, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-input-wrap--password .auth-input {
    padding-right: 42px;
}

.auth-toggle-pwd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5c6b82;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.auth-toggle-pwd > i {
    display: block;
    line-height: 1;
}

.auth-toggle-pwd:hover {
    color: #8b95a8;
}

/* --- Запомнить / Забыли --- */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #8b95a8;
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-forgot {
    font-size: 13px;
    font-weight: 400;
    color: #4d9fff;
    text-decoration: none;
    white-space: nowrap;
}

.auth-forgot:hover {
    color: #6eb0ff;
    text-decoration: underline;
}

/* --- Кнопка --- */
.auth-submit {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #4d8ff7 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.auth-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* --- Разделитель --- */
.auth-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-size: 13px;
    font-weight: 400;
    color: #6b7789;
    flex-shrink: 0;
}

/* --- Футер --- */
.auth-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #8b95a8;
}

.auth-footer a {
    color: #4d9fff;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #6eb0ff;
    text-decoration: underline;
}

/* --- Режим просмотра --- */
.auth-preview-hint {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    font-size: 12px;
    line-height: 1.45;
    color: #9db8e8;
    text-align: center;
}

.auth-preview-hint strong {
    color: #c8daf8;
    font-weight: 600;
}

/* --- Ошибки --- */
.auth-error-block {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.4;
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #f87171;
}

@media (max-width: 480px) {
    html.auth-html,
    html.auth-html body.auth-body {
        overflow: auto;
    }

    .auth-page {
        min-height: 100dvh;
        height: auto;
        padding: 20px 16px;
    }

    .auth-card {
        padding: 28px 22px 26px;
        border-radius: 14px;
    }

    .auth-logo {
        height: 92px;
        margin-bottom: 16px;
    }

    .auth-brand {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }
}