﻿.modern-login {
    width: 100%;
    padding: 24px 0 44px;
}

.modern-login__shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid #d3dfed;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 45, 93, 0.16), 0 8px 24px rgba(15, 45, 93, 0.08);
}

/* Left panel */

.modern-login__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 50px;
    background: radial-gradient( circle at top right, rgba(60, 208, 255, 0.18), transparent 38% ), radial-gradient( circle at bottom left, rgba(69, 83, 255, 0.18), transparent 34% ), linear-gradient( 145deg, #071a3b 0%, #103770 52%, #176abe 100% );
    color: #ffffff;
}

  

    .modern-login__brand::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( rgba(255, 255, 255, 0.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px );
        background-size: 34px 34px;
        pointer-events: none;
    }

.modern-login__brand-content,
.modern-login__brand-footer {
    position: relative;
    z-index: 1;
}

.modern-login__logo {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.15);
}

.modern-login__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #a8dcff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.modern-login__brand h1 {
    max-width: 480px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.modern-login__intro {
    max-width: 500px;
    margin: 0;
    color: #d8e8fb;
    font-size: 1.02rem;
    line-height: 1.7;
}

.modern-login__features {
    display: grid;
    gap: 17px;
    margin-top: 38px;
}

.modern-login__feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.modern-login__feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
}

.modern-login__feature strong,
.modern-login__feature small {
    display: block;
}

.modern-login__feature strong {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.96rem;
}

.modern-login__feature small {
    color: #c8dbf2;
    font-size: 0.82rem;
    line-height: 1.4;
}

.modern-login__brand-footer {
    margin-top: 38px;
    color: rgba(226, 240, 255, 0.7);
    font-size: 0.76rem;
}

/* Right panel */

.modern-login__form-panel {
    display: grid;
    place-items: center;
    padding: 45px 50px;
    background: radial-gradient( circle at top right, rgba(45, 127, 217, 0.08), transparent 35% ), #ffffff;
}

.modern-login__form-wrapper {
    width: min(420px, 100%);
}

.modern-login__mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #102a56;
}

.modern-login__mobile-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #10366f, #2477c8);
    color: #ffffff;
    font-weight: 900;
}

.modern-login__heading {
    margin-bottom: 24px;
}

    .modern-login__heading > span {
        display: block;
        margin-bottom: 8px;
        color: #2269b2;
        font-size: 0.74rem;
        font-weight: 900;
        letter-spacing: 0.14em;
    }

    .modern-login__heading h2 {
        margin: 0 0 9px;
        color: #102a56;
        font-size: 2rem;
    }

    .modern-login__heading p {
        margin: 0;
        color: #68778b;
        line-height: 1.55;
    }

.modern-login__notice {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #d8e7f8;
    border-left: 4px solid #2f78c5;
    border-radius: 12px;
    background: #f3f8ff;
}

.modern-login__notice-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcecff;
    color: #16599c;
    font-weight: 900;
}

.modern-login__notice strong {
    display: block;
    margin-bottom: 4px;
    color: #183b69;
    font-size: 0.88rem;
}

.modern-login__notice p {
    margin: 0;
    color: #5f718a;
    font-size: 0.81rem;
    line-height: 1.5;
}

.modern-login__form {
    display: grid;
    gap: 18px;
}

.modern-login__field {
    display: grid;
    gap: 8px;
}

    .modern-login__field label {
        color: #203652;
        font-size: 0.88rem;
        font-weight: 800;
    }

.modern-login__input {
    position: relative;
    display: flex;
    align-items: center;
}

    .modern-login__input input {
        width: 100%;
        min-height: 53px;
        padding: 12px 64px 12px 54px;
        border: 1px solid #bdcadb;
        border-radius: 12px;
        background: #ffffff;
        color: #17233c;
        box-shadow: 0 5px 15px rgba(20, 53, 99, 0.04);
    }

        .modern-login__input input:focus {
            border-color: #2e76c2;
            outline: none;
            box-shadow: 0 0 0 4px rgba(46, 118, 194, 0.13), 0 8px 20px rgba(20, 53, 99, 0.07);
        }

.modern-login__input-icon {
    position: absolute;
    left: 14px;
    z-index: 2;
    min-width: 30px;
    color: #49698e;
    font-size: 0.7rem;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
}

.modern-login__password-toggle {
    position: absolute;
    right: 9px;
    z-index: 3;
    min-width: 48px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #edf4fc;
    color: #315d8f;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

    .modern-login__password-toggle:hover {
        background: #dfeefa;
    }

.modern-login__validation {
    padding: 11px 13px;
    border: 1px solid #efc1c7;
    border-radius: 10px;
    background: #fff1f3;
    color: #a51d2d;
    font-size: 0.84rem;
}

    .modern-login__validation:empty,
    .modern-login__field-error:empty {
        display: none;
    }

    .modern-login__validation ul {
        margin: 0;
        padding-left: 18px;
    }

.modern-login__field-error {
    color: #a51d2d;
    font-size: 0.78rem;
}

.modern-login__submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #123c7a, #1c69b9);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 13px 27px rgba(24, 90, 162, 0.24);
    transition: transform 0.17s ease, box-shadow 0.17s ease;
}

    .modern-login__submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 17px 32px rgba(24, 90, 162, 0.3);
    }

.modern-login__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: #78879a;
    font-size: 0.76rem;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .modern-login__shell {
        grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1fr);
    }

    .modern-login__brand {
        padding: 40px 32px;
    }

    .modern-login__form-panel {
        padding-inline: 36px;
    }
}

@media (max-width: 760px) {
    .modern-login {
        padding-top: 4px;
    }

    .modern-login__shell {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .modern-login__brand {
        display: none;
    }

    .modern-login__form-panel {
        padding: 30px 24px;
    }

    .modern-login__mobile-brand {
        display: flex;
    }

    .modern-login__heading h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 430px) {
    .modern-login__form-panel {
        padding: 25px 18px;
    }

    .modern-login__notice {
        grid-template-columns: 1fr;
    }

    .modern-login__notice-icon {
        display: none;
    }
}

.modern-login__school-name {
    margin: 14px 0 24px;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

    .modern-login__school-name span {
        display: inline-block;
        margin-top: 5px;
        color: #d8e8fb;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0;
    }

@media (max-width: 760px) {
    .modern-login__school-name {
        font-size: 1.4rem;
    }

        .modern-login__school-name span {
            font-size: 0.95rem;
        }
}

.modern-login__brand-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.modern-login__school-name {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

    .modern-login__school-name span {
        display: block;
        margin-top: 12px;
        color: #d6e7fb;
        font-size: 1.2rem;
        font-weight: 750;
        letter-spacing: 0;
    }

.modern-login__hero-logo {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    display: grid;
    place-items: center;
}

    .modern-login__hero-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.modern-login__portal-name {
    margin-bottom: 30px;
    color: #102a56;
    font-size: 1.15rem;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .modern-login__hero-logo {
        width: 120px;
        height: 120px;
        flex-basis: 120px;
    }

    .modern-login__school-name {
        font-size: 1.65rem;
    }

        .modern-login__school-name span {
            font-size: 1rem;
        }
}

@media (max-width: 760px) {
    .modern-login__brand-header {
        display: grid;
    }

    .modern-login__hero-logo {
        width: 100px;
        height: 100px;
    }
}

.modern-login__brand-footer {
    color: rgba(226, 240, 255, 0.78);
    font-size: 0.76rem;
    line-height: 1.55;
}

.modern-login__company-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

    .modern-login__company-link:hover {
        color: #a8dcff;
        text-decoration: underline;
    }

.modern-login__rights {
    margin-top: 3px;
}

