*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: #0f7a65;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Full-screen background layer (matches .rootLoaderContainer) ── */
.rootLoaderContainer {
    position: relative;
    min-height: 100%;
    min-height: 100dvh;
    width: 100%;
    min-width: 100%;
    background-color: #0f7a65;
    color: #f4f7fb;
    display: block;
    overflow: hidden;
}

.rootLoaderContainer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: var(--fts-bg-gerb, url("/images/BgGerbNew.webp"));
    background-repeat: no-repeat;
    background-position: center 52%;
    background-size: 100% auto;
    pointer-events: none;
}

/* ── Content wrapper ── */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 414px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
}

/* ── Header: logo + title ── */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
}

.header__logo {
    width: 72px;
    height: auto;
    margin-bottom: 10px;
}

.header__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #f4f7fb;
    letter-spacing: 0.01em;
}

/* ── Login section ── */
.login-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-section__heading {
    font-size: 28px;
    font-weight: 700;
    color: #f4f7fb;
    margin-bottom: 4px;
    line-height: 1.2;
}

.login-section__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #f4f7fb;
    margin-bottom: 22px;
    line-height: 1.35;
    text-align: center;
}

/* ── Form ── */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 3px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    color: #333333;
    outline: none;
}

.login-form__input::placeholder {
    color: #9a9a9a;
    font-size: 15px;
}

.login-form__btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 3px;
    background-color: #c5ddd2;
    color: #0f7a65;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
}

.login-form__btn:active {
    background-color: #a8cdb8;
}

.login-form__btn--disabled,
.login-form__btn--disabled:disabled {
    background-color: #a8c4b8;
    color: #6a8f82;
    cursor: not-allowed;
    opacity: 0.75;
}

.login-form__btn--disabled:active {
    background-color: #a8c4b8;
}

.login-form__forgot {
    text-align: center;
    margin-top: 4px;
}

.login-form__forgot-link {
    font-size: 13px;
    color: #c8e8f8;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.login-form__forgot-link:hover {
    color: #e0f4fc;
}

.login-form__error {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #fff5f5;
    background: rgba(180, 60, 60, 0.35);
    border: 1px solid rgba(255, 180, 180, 0.45);
    border-radius: 4px;
    text-align: center;
}

.forgot-panel[hidden] {
    display: none !important;
}

#login-panel[hidden] {
    display: none !important;
}

.forgot-result__box {
    width: 100%;
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    text-align: center;
}

.forgot-result__label {
    font-size: 13px;
    margin-bottom: 8px;
    color: #f4f7fb;
}

.forgot-result__password {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 10px;
    word-break: break-all;
}

.forgot-result__hint {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(244, 247, 251, 0.9);
}

/* ── Footer links ── */
.footer-links {
    margin-top: auto;
    padding-top: 36px;
    text-align: center;
    width: 100%;
}

.footer-links__line {
    font-size: 13px;
    line-height: 1.45;
    color: #f4f7fb;
    margin-bottom: 6px;
}

.footer-links__line a {
    color: #c8e8f8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links__line a:hover {
    color: #e0f4fc;
}

/* ── Slightly wider screens ── */
@media (min-width: 415px) {
    .page-content {
        padding-top: 40px;
    }
}
