/* ERP нэвтрэх код — MGT брэнд */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&subset=cyrillic,cyrillic-ext,latin&display=swap');

:root {
    --gate-navy: #213448;
    --gate-navy-deep: #182736;
    --gate-accent: #547792;
    --gate-accent-hover: #42657f;
    --gate-accent-soft: rgba(84, 119, 146, 0.14);
    --gate-text: #1e293b;
    --gate-muted: #64748b;
    --gate-border: #e2e8f0;
    --gate-input-bg: #f8fafc;
    --gate-radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.portal-gate-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gate-text);
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(84, 119, 146, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(33, 52, 72, 0.08), transparent 50%),
        linear-gradient(165deg, #f4f7fa 0%, #eef2f6 45%, #e8edf2 100%);
}

.portal-gate-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.portal-gate-card {
    width: 100%;
    max-width: 400px;
    padding: 2.25rem 2rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 2px rgba(33, 52, 72, 0.04),
        0 20px 50px rgba(33, 52, 72, 0.1);
}

.portal-gate-brand {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    line-height: 0;
    text-decoration: none;
}

.portal-gate-brand img {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.portal-gate-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.portal-gate-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gate-navy);
    line-height: 1.25;
}

.portal-gate-alert {
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.portal-gate-form {
    display: grid;
    gap: 1.25rem;
}

.portal-gate-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gate-navy);
}

.portal-gate-input-wrap {
    position: relative;
}

.portal-gate-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.portal-gate-input-wrap input {
    width: 100%;
    padding: 0.8rem 0.9rem 0.8rem 2.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gate-text);
    background: var(--gate-input-bg);
    border: 1px solid var(--gate-border);
    border-radius: 12px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.portal-gate-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.portal-gate-input-wrap input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.portal-gate-input-wrap input:focus {
    outline: none;
    border-color: var(--gate-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--gate-accent-soft);
}

.portal-gate-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, var(--gate-accent) 0%, var(--gate-accent-hover) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(84, 119, 146, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.portal-gate-submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 6px 18px rgba(84, 119, 146, 0.34);
}

.portal-gate-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(84, 119, 146, 0.24);
}

.portal-gate-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gate-border);
    text-align: center;
}

.portal-gate-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gate-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.portal-gate-back svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.portal-gate-back:hover {
    color: var(--gate-navy);
}

@media (max-width: 420px) {
    .portal-gate-card {
        padding: 1.75rem 1.35rem 1.5rem;
        border-radius: 16px;
    }

    .portal-gate-title {
        font-size: 1.25rem;
    }
}
