/* Страница входа /avtors/ — современный card-layout в стиле DiplomBel.by */
.avtors-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
    background: linear-gradient(145deg, #eef4fb 0%, #f8fafc 42%, #e8f0fa 100%);
}

.avtors-login-page #main {
    position: static;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
    box-sizing: border-box;
}

.avtors-login {
    width: 100%;
    max-width: 420px;
}

.avtors-login__card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 76, 154, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(11, 92, 171, 0.08);
    overflow: hidden;
}

.avtors-login__header {
    padding: 28px 28px 8px;
    text-align: center;
}

.avtors-login__logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.avtors-login__logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 180px;
    margin: 0 auto;
}

.avtors-login__badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(11, 92, 171, 0.08);
    color: #0b5cab;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.avtors-login__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.avtors-login__subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.avtors-login__body {
    padding: 8px 28px 24px;
}

.avtors-login__alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.avtors-login__alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.avtors-login__alert--info {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.avtors-login__field {
    margin-bottom: 16px;
}

.avtors-login__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.avtors-login__input-wrap {
    position: relative;
}

.avtors-login__input-wrap .fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.avtors-login__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.avtors-login__input:focus {
    outline: none;
    border-color: #0b5cab;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
}

.avtors-login__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.avtors-login__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #0b5cab;
}

.avtors-login__hint {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
}

.avtors-login__hint a {
    color: #0b5cab;
    font-weight: 600;
    text-decoration: none;
}

.avtors-login__hint a:hover {
    text-decoration: underline;
}

.avtors-login__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    background: #0b5cab;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.avtors-login__submit:hover,
.avtors-login__submit:focus {
    background: #08498a;
}

.avtors-login__submit:active {
    transform: translateY(1px);
}

.avtors-login__submit--secondary {
    background: #f59e0b;
}

.avtors-login__submit--secondary:hover,
.avtors-login__submit--secondary:focus {
    background: #d97706;
}

#reset-form {
    display: none;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

#reset-form.is-visible {
    display: block;
}

.avtors-login__reset-title {
    margin: 16px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.avtors-login__captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.avtors-login__captcha-row img {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.avtors-login__captcha-refresh {
    padding: 0;
    border: none;
    background: none;
    color: #0b5cab;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.avtors-login__captcha-refresh:hover {
    text-decoration: underline;
}

.avtors-login__footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.avtors-login__copyright {
    margin: 0 0 10px;
    font-size: 12px;
    color: #94a3b8;
}

.avtors-login__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: 13px;
}

.avtors-login__nav a {
    color: #0b5cab;
    text-decoration: none;
    font-weight: 500;
}

.avtors-login__nav a:hover {
    text-decoration: underline;
}

.avtors-login__nav-sep {
    color: #cbd5e1;
}

.avtors-login .help-block {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.avtors-login .has-error .avtors-login__input {
    border-color: #dc2626;
}

@media (max-width: 480px) {
    .avtors-login__header,
    .avtors-login__body,
    .avtors-login__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .avtors-login__title {
        font-size: 20px;
    }
}
