.login-shell {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 16px 60px;
    overflow: hidden;
}

.login-shell::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(28, 48, 68, 0.14);
    display: grid;
    grid-template-columns: 340px 1fr;
    overflow: hidden;
}

@media (max-width: 780px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-brand {
        border-right: 0 !important;
        border-bottom: 1px solid #eef1f6;
    }
}

.login-brand {
    padding: 44px 34px;
    text-align: center;
    border-right: 1px solid #eef1f6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand-badge {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
    overflow: hidden;
}

.login-brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c3044;
    margin: 0 0 8px;
}

.login-brand-subtitle {
    font-size: 14px;
    color: #6b7a90;
    line-height: 1.55;
    margin: 0 0 16px;
}

.login-accent {
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: #ff5a3c;
    margin: 0 auto 22px;
}

.login-school {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 28px;
}

.login-school-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eef1f6;
}

.login-school-monogram {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff5a3c;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-school-label {
    font-size: 12px;
    color: #8592a6;
    line-height: 1.4;
}

.login-school-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ff5a3c;
    line-height: 1.4;
}

.login-illustration {
    margin-top: auto;
    opacity: 0.55;
}

.login-form-col {
    padding: 44px 48px;
}

@media (max-width: 480px) {
    .login-form-col {
        padding: 36px 24px;
    }
}

.login-form-title {
    font-size: 21px;
    font-weight: 700;
    color: #1c3044;
    margin: 0 0 10px;
}

.login-field {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1c3044;
    margin-bottom: 8px;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #ff5a3c;
    font-size: 14px;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border-radius: 10px;
    border: 1.5px solid #dbe3ee;
    font-size: 14.5px;
    color: #1c3044;
    background: #fff;
}

.login-input:focus {
    border-color: #ff5a3c;
    box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.15);
    outline: none;
}

.login-input--password {
    padding-right: 64px;
}

.login-input-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: 0;
    color: #6b7a90;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 8px;
    cursor: pointer;
}

.login-input-toggle:hover,
.login-input-toggle:focus {
    color: #ff5a3c;
}

.login-help {
    display: block;
    color: #d9483a;
    font-size: 12.5px;
    margin-top: 6px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #1c3044;
    margin-bottom: 24px;
}

.login-remember input {
    width: 15px;
    height: 15px;
    accent-color: #ff5a3c;
}

.login-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(120deg, #ff5a3c, #ff6b4a);
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(214, 79, 47, 0.25);
}

.login-btn-primary:hover,
.login-btn-primary:focus {
    background: linear-gradient(120deg, #ff6b4a, #ff5a3c);
    color: #fff;
}

.login-divider-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #b7c0cd;
    font-size: 12.5px;
    margin: 20px 0;
}

.login-divider-row::before,
.login-divider-row::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef1f6;
}

.login-forgot {
    display: block;
    text-align: center;
    color: #ff5a3c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.login-forgot:hover,
.login-forgot:focus {
    text-decoration: underline;
    color: #ff5a3c;
}

.login-footer {
    max-width: 1000px;
    margin: 28px auto 0;
    padding: 0 16px 32px;
}

.login-footer-inner {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(28, 48, 68, 0.08);
    padding: 22px 24px 18px;
}

.login-footer-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
    color: #1c3044;
    margin-bottom: 16px;
}

.login-footer-contacts a {
    color: #1c3044;
    text-decoration: none;
}

.login-footer-contacts a:hover {
    color: #ff5a3c;
}

.login-footer-contacts span.glyphicon {
    color: #ff5a3c;
    margin-right: 6px;
}

.login-footer-divider {
    border: 0;
    border-top: 1px solid #dde3ec;
    margin: 0 auto 16px;
    max-width: 1000px;
}

.login-footer-copyright {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #556477;
    padding-bottom: 4px;
}

.login-footer-copyright a {
    color: #ff5a3c;
    font-weight: 600;
    text-decoration: none;
}

/* Simple single-column auth card (password reset, registration) */
.login-simple-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(28, 48, 68, 0.14);
    padding: 44px 40px;
    text-align: center;
}

.login-simple-card--wide {
    max-width: 620px;
    text-align: left;
}

.login-simple-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff1ec;
    color: #ff5a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
}

.login-simple-card--wide .login-simple-icon {
    margin-left: 0;
    margin-right: auto;
}

.login-simple-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c3044;
    margin: 0 0 10px;
}

.login-simple-subtitle {
    font-size: 14px;
    color: #6b7a90;
    line-height: 1.55;
    margin: 0 0 26px;
}

.login-simple-card .login-field {
    text-align: left;
}

.login-hint {
    display: block;
    font-size: 12px;
    color: #8592a6;
    margin-top: 6px;
    line-height: 1.5;
}

.login-required-note {
    font-size: 12.5px;
    color: #8592a6;
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 22px;
}

.login-required-note strong {
    color: #1c3044;
}

.login-required-note .login-required-mark {
    color: #d9483a;
    font-weight: 700;
}

.login-required-mark {
    color: #d9483a;
    font-weight: 700;
}

.login-status {
    background: #eafaf0;
    border: 1px solid #bff0d2;
    color: #1a7a46;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 20px;
    text-align: left;
}

.login-code-match {
    display: block;
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 600;
}

.login-back-link {
    display: block;
    text-align: center;
    color: #ff5a3c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 22px;
}

.login-back-link:hover,
.login-back-link:focus {
    text-decoration: underline;
    color: #ff5a3c;
}
