﻿/* ========== Base page ========== */
html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: Golos, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
@font-face {
    font-family: 'Golos';
    src: url('/font/Golos/GolosText-Regular.woff2') format('woff2'), url('/font/Golos/GolosText-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* good default */
}
/* ========== Form wrapper ========== */
.login-container {
    width: 392px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 60px;
    user-select: none;
}
    .login-container input {
        user-select: text;
        caret-color: auto;
    }
    .login-container form {
        width: 392px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
/* ---------- logo ---------- */
.logo {
    width: 168px;
    height: 60px;
    margin: 0 50px 10px 0;
    background: url("/img/logo.svg") center no-repeat;
}

/* ---------- company name ---------- */
.company-name {
    font-family: 'Inter',sans-serif;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    margin: 0 0 56px 0;
    user-select: none;
}

/* ========== FIELD BLOCKS ========== */
.input-group {
    flex: 0 0 50px;
    width: 100%;
    height: 50px;
    border: 1px solid rgba(0,0,0,.26);
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 28px;
    position: relative;
}
input::placeholder {
    color: #000000; /* Example color */
    opacity: 1; /* Ensure it's fully visible */
    font-family: 'Golos', sans-serif;
}
input::-webkit-input-placeholder {
    color: #000000;
}

input::-moz-placeholder {
    color: #000000;
}

input:-ms-input-placeholder {
    color: #000000;
}

input::placeholder {
    color: #000000;
}
    .input-group .icon {
        position: absolute;
        left: 16px;
        width: 22px;
        height: 22px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .input-group input {
        padding: 0 48px 0 52px;
    }
    .input-group:has(input:focus) {
        border: 1px solid rgba(0,0,0,.26) !important;
        outline: none !important;
        box-shadow: none !important;
    }
input, textarea, select, button {
    font-family: inherit; /* inherits from .login-container or body */
}
/* username + key icons */
.user-icon {
    background-image: url("/img/interface/user-line.svg");
}

.key-icon {
    background-image: url("/img/interface/key-round.svg");
}

.eye-icon {
    left: auto !important;
    right: 16px !important;
    background: url("/img/interface/eye-off.svg") center no-repeat;
}

/* text field itself */
.input-group input {
    font-display:optional;
    font-size: 16px !important;
    line-height: normal;
    flex: 1;
    height: 100%;
    padding: 0 48px 0 52px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    caret-color: #000;
}

input::selection {
    background: #98c6eb;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #000;
}

/* ========== SUBMIT BUTTON ========== */
.signin-button {
    width: 124px;
    height: 48px;
    padding:0px 0px 0px 0px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    user-select: none;
}
.signin-button {
    display: block;
    margin: 0 auto;
}
.signin-button {
    align-self: center;
}
    .signin-button:focus-visible {
        outline: 2px solid #000;
        outline-offset: 2px;
    }

    /* ========== Accessibility focus ring ========== */
    .input-group:has(input:focus),
    .signin-button:focus-visible {
        outline: 2px solid #000;
        outline-offset: 2px;
    }

/* --- RED OUTLINE while the error is visible --------------------------- */
.input-validation-error,
.input-group.error { /* toggled by JS */
    border: 1px solid #DC5D68 !important;
}

/* --- GLOBAL ERROR MESSAGE -------------------------------------------- */
.form-error {
    /* keeps 22 px of the 50 px gap even when hidden */
    min-height: 0; /* will become 14 px when shown      */
    margin: 0 0 20px; /* 28 px (from .input-group) + 22 px = 50 px */
    font-family: Golos, sans-serif; /* ensure correct face               */
    font-size: 14px;
    line-height: 16px;
    color: #DC5D68; /* ← brand‑specified colour          */
    text-align: center;
    opacity: 0;
    overflow: visible;
    transition: opacity .2s ease;
}
    /* ❸ remove list bullets & extra spacing that tag‑helper generates */
    .form-error ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .form-error li {
        margin: 0; /* no indent */
        line-height: 14px; /* keeps the 64 px total gap we calculated */
    }
    .form-error.show {
        min-height: 16px; /* 28 + 22 + 14 = 64 px total gap    */
        opacity: 1; /* fades in                          */
    }