
.overlay-box {
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.78;
    background: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.login-box {
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 420px;
    max-width: calc(100% - 44px);
    border-radius: 16px;
    background: #fff;
    padding: 22px 22px 18px 22px;
    border-top: 6px solid #466bc7;
    box-shadow: 0 20px 70px rgba(0,0,0,0.55);
}

/* крестик - в пределах модалки (не улетает) */
.login-close {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #111;
    border-radius: 12px;
    background: #f3f6ff;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.login-close:hover {
    transform: translateY(-1px);
    background: #eaf0ff;
    opacity: 0.95;
}

/* заголовок */
.login-title {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 14px 0;
    text-align: center;
    color: #111;
}

/* аватар */
.login-avatar {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    margin: 0 auto 14px auto;
    text-align: center;
    line-height: 62px;
    font-size: 22px;
    /* background: #f7f9ff; */
    color: #466bc7;
    overflow: hidden;
    /* border: 1px solid rgba(70,107,199,0.14); */
}

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* поля */
.login-input {
    margin-bottom: 10px;
}

.login-input input {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #f7f8fb;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.login-input input:focus {
    background: #fff;
    border-color: rgba(70,107,199,0.55);
    box-shadow: 0 0 0 4px rgba(70,107,199,0.12);
}

/* кнопка входа */
.login-btn button {
    width: 100%;
    height: 46px;
    margin: 12px 0 10px 0;
    border: 0;
    border-radius: 14px;
    background: #1ba000 !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.login-btn button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    background: #335bbf;
}

/* тумблер */
.login-check {
    position: relative;
    font-size: 13px;
    margin-top: 6px;
}

.login-check input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.login-check span {
    display: block;
    padding-left: 40px;
    height: 30px;
    line-height: 30px;
    color: #5f6773;
    font-weight: 700;
}

.login-check span:before,
.login-check span:after {
    content: '';
    position: absolute;
    top: 50%;
    transition: .25s ease;
}

.login-check span:before {
    left: 0;
    height: 12px;
    margin-top: -6px;
    width: 30px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.22);
}

.login-check span:after {
    left: 2px;
    height: 14px;
    width: 14px;
    margin-top: -7px;
    background: #466bc7;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0);
}

.login-check input:checked + span:after {
    left: 14px;
    background: #111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* разделитель "або" */
.login-text-middle {
    text-align: center;
    padding: 8px 0 6px 0;
    font-weight: 800;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* нижние ссылки */
.login-btm {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.login-btm a {
    flex: 1;
    padding: 10px 12px;
    font-weight: 800;
    border: 1px solid rgba(70,107,199,0.18);
    border-radius: 14px;
    color: #466bc7;
    background: #f3f6ff;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.login-btm a:hover {
    transform: translateY(-1px);
    background: #eaf0ff;
    opacity: 0.95;
}

/* меню авторизованного (2 колонки) */
.login-menu {
    margin-top: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
}

.login-menu li {
    text-align: center;
    width: 50%;
    border-right: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.login-menu li:nth-child(2n) {
    border-right: 0;
}

.login-menu li[style*="width: 100%"],
.login-menu li[style*="width:100%"] {
    width: 100%;
    border-right: 0;
}

.login-menu a {
    display: block;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #111;
    background: #fff;
    transition: background .2s ease, opacity .2s ease;
}

.login-menu a:hover {
    background: #eef3ff;
    opacity: 0.95;
}

.login-menu li .fa {
    color: #466bc7;
    margin-right: 6px;
}

/* админ линк */
.login-admin {
    text-align: center;
    margin: 2px 0 12px 0;
}

.login-admin a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #f7f8fb;
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

.login-admin a:hover {
    background: #eef3ff;
}

/* кнопка логина в шапке - оставляем класс, но подтягиваем под стиль шапки */
.logg-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.20);
    color: #fff;
    margin-left: 10px;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.logg-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    background: rgba(255,255,255,0.22);
}

/* не трогаем, но делаем адекватно */
.logico {color: #466bc7; margin-right: 6px;}
.login-button:hover {background-color: #335bbf !important;}

/* reg-section (оставил, но подтянул под стиль) */
.sect-ico {margin-right: 10px; color: #466bc7;}
.sect-reg {padding: 10px; margin: 5px 0;}
.reg-section {display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap;}
.reg-success-button {
    color: #466bc7;
    background-color: #f3f6ff;
    margin: 10px 12px;
    padding: 10px 18px;
    max-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    font-weight: 800;
    border: 1px solid rgba(70,107,199,0.18);
    font-size: 16px;
    border-radius: 14px;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.reg-success-button:hover {
    color: #fff;
    background-color: #466bc7;
    transform: translateY(-2px);
    opacity: 0.95;
}

.reg-success-button:hover > .sect-ico {color: #fff; transition: all .2s ease;}

.reg-section-footer {
    border-top: 2px solid rgba(70,107,199,0.22);
    padding: 10px;
    margin: 5px 0;
}

/* мобильная логика - без кривых позиций */
@media screen and (max-width: 760px) {
    .not-logged .login-avatar {display: none;}
    .login-box {padding: 16px; width: 92vw;}
    .login-title {font-size: 16px;}
    .login-btm {flex-direction: column;}
}

@media screen and (max-width: 590px) {
    .logg-button {width: 32px !important; height: 32px !important;}
}


/* mini profile */


.profile-mini {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.profile-mini-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f8fb;
}

.profile-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-mini-state {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    text-align: center;
}

.profile-mini-state-on {
    background: rgba(28, 133, 28, 0.12);
    color: #1c851c;
}

.profile-mini-state-off {
    background: rgba(0, 0, 0, 0.08);
    color: #444;
}

.profile-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}

.profile-mini-list li {
    margin-top: 6px;
}

.profile-mini-list li:first-child {
    margin-top: 0;
}

/* reg-sucess */


.reg-done {
    display: block;
}

.reg-next {
    margin-top: 12px;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.reg-next-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 10px;
}

.reg-next-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reg-next-card {
    flex: 1;
    min-width: 220px;
    border-radius: 16px;
    background: #f7f8fb;
    border: 1px solid #f1f1f1;
    padding: 14px;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.reg-next-card:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.reg-next-ico {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #466bc7;
    font-size: 18px;
}

.reg-next-head {
    font-size: 15px;
    font-weight: 900;
}

.reg-next-text {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}

.reg-footnote {
    margin-top: 12px;
}


/* profile */


.profile-card {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-hero {
    padding: 16px;
    color: #ffffff;
    background: #506bc3;
    /* background: linear-gradient(135deg, #f4f7ff 0%, #eef3ff 100%); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-hero-title {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
}

.profile-hero-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 999px;
    overflow: hidden;
}

.profile-hero-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: transparent;
    background-size: cover;
    background-position: center;
}

.profile-body {
    padding: 14px;
}

.profile-acc {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.profile-drop {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 10px;
}

.profile-drop-head {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    background: #506bc3;
}

.profile-drop-ico {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    color: #466bc7;
}

.profile-drop-body {
    padding: 12px 14px 14px 14px;
}

.profile-checks {
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f7ff 0%, #eef3ff 100%);
}

.form-check-label {
    display: flex;
    gap: 5px;
}

.profile-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}




/* reg */


.form-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f8fb;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-note-link {
    font-weight: 900;
    color: #111;
    text-decoration: underline;
}

.form-row-withbtn .form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inline-btn {
    height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    border: 0;
    background: #111;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}


/*  */