@font-face {
    font-family: IRANSans;
    src: url("/fonts/IRANSansWeb.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url("/fonts/IRANSansWeb_Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url("/fonts/IRANSansWeb_Bold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body.gate {
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: #F4F7F9;
    color: #1C2830;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 14px;
}

.gate-card {
    width: min(400px, 100%);
    padding: 28px 24px 24px;
    background: #FFFFFF;
    border: 1px solid #D0D7DE;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(22, 36, 48, 0.08);
}

.gate-logo {
    display: block;
    width: 48px;
    height: 76px;
    margin: 0 auto 10px;
    object-fit: contain;
    background: transparent;
}

.gate-card h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.gate-lead {
    margin: 4px 0 18px;
    color: #5E6E7A;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.gate-error {
    margin: 0 0 14px;
    padding: 8px 10px;
    background: #F8EEE9;
    border: 1px solid #E4C8BC;
    border-radius: 8px;
    color: #8A3B12;
    font-size: 13px;
    line-height: 1.6;
}

.gate-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.gate-field span {
    font-size: 13px;
}

.gate-field small {
    color: #5E6E7A;
    font-size: 12px;
}

.gate-field input {
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #D0D7DE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1C2830;
    font: inherit;
}

.gate-field input:focus {
    outline: 1px solid #1B6CA8;
    outline-offset: 1px;
}

.gate-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
}

.gate-captcha img {
    flex: none;
    width: 180px;
    height: 64px;
    border: 1px solid #D0D7DE;
    border-radius: 8px;
    background: #F4F7F9;
}

.gate-refresh,
.gate-submit {
    margin: 0;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.gate-refresh {
    height: 36px;
    padding: 0 12px;
    background: #E4EAF0;
    color: #1C2830;
}

.gate-refresh:hover { background: #D5DCE3; }

.gate-submit {
    width: 100%;
    height: 40px;
    margin-top: 4px;
    background: #1B6CA8;
    color: #FFFFFF;
    font-weight: 500;
}

.gate-submit:hover { background: #145685; }

.gate-refresh:focus,
.gate-submit:focus { outline: none; }

.gate-refresh:focus-visible,
.gate-submit:focus-visible {
    outline: 1px solid #1B6CA8;
    outline-offset: 2px;
}
