/* вход в постоянный аккаунт — в стиле регистрации студента */

body:has(.account-login) #content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    animation: none;
}

body:has(.account-login).has-sidebar #content {
    margin-left: 0 !important;
}

body:has(.account-login) #content a {
    color: inherit;
}

body:has(.account-login) #content a:hover {
    color: inherit;
}

body:has(.account-login) .footer {
    display: none;
}

.account-login {
    --al-orange: #ff8a3d;
    --al-pink: #ff5a5f;
    --al-ink: #1f2430;
    --al-muted: #8b919a;

    width: 100%;
    min-height: calc(100vh - 118px);
    margin: 0;
    padding: clamp(16px, 3vw, 36px) 16px 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 170, 110, 0.16), transparent 42%),
        radial-gradient(circle at 86% 78%, rgba(255, 120, 130, 0.12), transparent 40%);
}

.account-login__card {
    width: min(460px, 100%);
    padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 36px) clamp(24px, 3vw, 32px);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(80, 50, 30, 0.1);
    text-align: center;
    animation: al-in 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes al-in {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.account-login__head {
    margin: 0 0 28px;
}

.account-login__head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--al-ink);
    line-height: 1.15;
}

.account-login__role {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--al-ink);
}

.account-login__form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.account-login__field {
    min-width: 0;
}

.account-login__float {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1.8px solid var(--al-orange);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-login__float:focus-within {
    border-color: var(--al-pink);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
}

.account-login__float--password {
    padding-right: 6px;
}

.account-login__float-label {
    position: absolute;
    left: 14px;
    top: 0;
    transform: translateY(-50%);
    padding: 0 6px;
    background: #fff;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.account-login__float input,
.account-login input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    float: none !important;
    max-width: none !important;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-ink);
}

.account-login__float input::placeholder {
    color: transparent;
}

.account-login__eye {
    appearance: none;
    border: 0;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #a0a6b0;
    flex: 0 0 auto;
}

.account-login__eye:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #6b7280;
}

.account-login__eye svg {
    width: 20px;
    height: 20px;
}

.account-login__eye-off[hidden],
.account-login__eye-open[hidden] {
    display: none !important;
}

.account-login__forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.account-login__forgot {
    color: var(--al-orange) !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.account-login__forgot:hover {
    color: var(--al-pink) !important;
    text-decoration: underline !important;
}

.account-login__submit {
    appearance: none;
    border: 0;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: linear-gradient(90deg, #ff8a3d 0%, #ff5a5f 100%);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 90, 95, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.account-login__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 34px rgba(255, 90, 95, 0.34);
}

.account-login__submit:active {
    transform: translateY(0);
}

.account-login__paw {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex: 0 0 auto;
}

.account-login__errors {
    margin: 0 0 4px;
}

.account-login__errors p {
    margin: 4px 0 0;
    color: #e11d48;
    font-size: 0.82rem;
    font-weight: 700;
}

.account-login__aside {
    margin-top: 22px;
}

.account-login__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9aa0a8;
}

.account-login__divider::before,
.account-login__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.account-login__register-ask {
    margin: 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
}

.account-login__register-ask a {
    color: var(--al-orange) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.account-login__register-ask a:hover {
    color: var(--al-pink) !important;
    text-decoration: underline !important;
}

@media (max-width: 560px) {
    .account-login {
        padding: 12px 12px 20px;
        min-height: 0;
    }

    .account-login__card {
        border-radius: 22px;
        padding: 24px 16px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-login__card {
        animation: none !important;
    }
}
