main {
    height: 100vh;
    display: flex;
    padding: 2.5rem 0 !important;
}

h1{
    font-family: 'GorizontMedium';
    font-size: 1.75rem;
    line-height: 140%;
    font-weight: 500;
    margin: 70px 0;
}

.left-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42.578125%;
    padding: 4rem;
    border-radius: 16px;
    background-color: var(--light-blue-color);
    max-height: 100%;
}

.left-side p {
    text-align: center;
}

.right-side {
    display: flex;
    flex-direction: column;
    width: 57.421875%;
    padding: 4rem 6.8125rem;
    height: 100%;
    align-items: center;
}

.right-side__head {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.right-side__form {
    width: 100%;
}

.right-side__subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
}

.right-side__head p{
    text-align: center;
}

.right-side__instruction p, .right-side__instruction h6{
    text-align: center;
    max-width: 25.5rem;
}

h6 {
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

button {
    margin: 20px auto 16px auto;
}

h2 {
    margin: 2.5rem 0 1rem 0;
    text-align: center;
}

form > p {
    text-align: center;
}

@media  (max-width: 998px) {
    main {
        flex-direction: column;
        max-height: 100%;
    }
    .left-side {
        width: 100%;
    }
    
    .right-side {
        width: 100%;
        padding: 2rem;
    }
}

@media  (max-width: 425px) {
    .right-side__head {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .left-side__logo {
        width: 200px;
    }

    .left-side__logo img{
        width: 100%;
    }

    h1 {
        font-size: 1.5rem;
    }

}

/* Код подтверждения почты*/

.code-input {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.code-input__box {
    width: 64px;
    height: 72px;
    font-family: 'GorizontRegular';
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
}

@media (max-width: 500px) {
    .code-input {
        gap: 6px;
    }

    .code-input__box {
        width: 40px;
        height: 48px;
        font-size: 1rem;
        padding: 4px;
    }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}



/* Loader on submit button */
.button.loading {
    position: relative;
    color: transparent; /* hide text while showing spinner optionally */
}

.button.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: rgba(0,0,0,0.6);
    animation: spinner 0.7s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* error link inside input__error */
.input__error a.link {
    color: inherit;
    text-decoration: underline;
    margin-left: 4px;
}

/* ---- Плашка о переезде домена (временная) ----
   Менеджеры паролей браузеров привязывают запись к origin (схема + хост),
   поэтому учётки, сохранённые для cabinet.nfes.ru, на cccp.itmo.ru не
   подставляются. Перенести их технически нельзя: API, дающего странице
   доступ к чужому origin, не существует. Плашка объясняет, что пароль
   прежний, и уводит на восстановление.
   Снимать целиком — вместе с разметкой в views/entry/login.php и
   обработчиком закрытия в js-new/login.js. Ориентир — ноябрь 2026,
   когда основная волна входов уже пройдёт. */
.notice {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 1rem 2.75rem 1rem 1.25rem;
    border: 1px solid var(--light-stroke-color);
    border-radius: 12px;
    background-color: var(--light-blue-color);
    font-size: 0.9375rem;
    line-height: 150%;
}

.notice p {
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice p.notice__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notice details {
    margin-top: 0.5rem;
}

.notice summary {
    cursor: pointer;
    color: var(--blue-color);
}

.notice summary:hover {
    color: var(--dark-color);
}

.notice details p {
    margin-top: 0.5rem;
}

.notice__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0; /* перебиваем общее правило button { margin: 20px auto 16px } */
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    color: var(--dark-color);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.notice__close:hover {
    background-color: var(--white-color);
}

/* Восстановление пароля. На время переезда это основной запасной выход для
   тех, у кого пароль остался только в менеджере старого домена, поэтому
   ссылка заметнее обычной строчки внизу формы. */
.form__recover {
    padding-top: 1.5rem;
    text-align: center;
}

.form__recover a {
    font-size: 1.0625rem;
    text-decoration: underline;
}


