.login-screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 42px;
    padding: 54px 24px 34px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 95% 60% at 66% 18%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.84) 46%, rgba(230, 235, 255, 0.62) 100%),
        linear-gradient(135deg, #e7ebff 0%, #f8fbff 45%, #e8ecff 100%);
    color: #13204f;
}

.login-screen::before,
.login-screen::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.login-screen::before {
    inset: -18% -8% 22% -12%;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-bottom: 0;
    border-radius: 0 0 58% 44%;
    transform: rotate(-8deg);
    opacity: 0.85;
}

.login-screen::after {
    left: -10%;
    right: 58%;
    bottom: -26%;
    height: 46%;
    border-radius: 0 100% 0 0;
    background: rgba(207, 216, 249, 0.34);
    box-shadow: 360px -120px 0 80px rgba(229, 234, 254, 0.52);
}

.login-building {
    position: absolute;
    right: -60px;
    bottom: 34px;
    width: min(33vw, 420px);
    height: min(49vw, 520px);
    opacity: 0.22;
    clip-path: polygon(45% 0, 100% 36%, 100% 100%, 0 100%, 0 45%);
    background:
        linear-gradient(90deg, rgba(78, 105, 197, 0.18) 1px, transparent 1px) 0 0 / 54px 100%,
        linear-gradient(0deg, rgba(78, 105, 197, 0.16) 1px, transparent 1px) 0 0 / 100% 58px,
        linear-gradient(135deg, rgba(84, 113, 207, 0.72), rgba(255, 255, 255, 0.54));
    box-shadow: inset 64px 0 0 rgba(255, 255, 255, 0.34);
}

.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-panel {
    width: 100%;
    max-width: 560px;
    position: relative;
    z-index: 1;
    transform: translateY(3px) scale(0.97);
    transform-origin: center;
    padding: 46px 58px 42px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(63, 80, 154, 0.16);
    backdrop-filter: blur(18px);
}

.login-logo {
    display: block;
    max-width: 138px;
    height: auto;
    margin-bottom: 18px;
}

.login-title h1 {
    margin: 0;
    color: #111a49;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.login-title::after {
    content: "";
    width: 50px;
    height: 4px;
    margin: 20px 0 18px;
    border-radius: 99px;
    background: #e2e6f2;
}

.login-copy p {
    margin: 0 0 34px;
    color: #2f3a5b;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

.login-error {
    margin: -12px 0 24px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.microsoft-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 14px 18px;
    border: 1px solid rgba(93, 126, 255, 0.65);
    border-radius: 7px;
    background: linear-gradient(180deg, #2448d9 0%, #18319e 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(27, 58, 176, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.microsoft-login-btn:hover {
    background: linear-gradient(180deg, #2a54f1 0%, #1a35ad 100%);
    box-shadow: 0 16px 30px rgba(27, 58, 176, 0.3);
    transform: translateY(-1px);
}

.microsoft-mark {
    display: grid;
    grid-template-columns: repeat(2, 17px);
    grid-template-rows: repeat(2, 17px);
    gap: 2px;
    flex: 0 0 auto;
}

.microsoft-mark span:nth-child(1) {
    background: #f25022;
}

.microsoft-mark span:nth-child(2) {
    background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
    background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
    background: #ffb900;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 38px;
    color: #4e5870;
}

.login-security i {
    color: #5669e8;
    font-size: 30px;
}

.login-security p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.login-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #7a849f;
    font-size: 14px;
}

.login-footer p {
    margin: 0 0 12px;
}

.login-footer nav {
    display: flex;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}

.login-footer a {
    color: #2d52bb;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-screen {
        justify-content: center;
        gap: 28px;
        padding: 34px 18px 28px;
    }

    .login-screen::before {
        inset: -12% -48% 38% -42%;
    }

    .login-building {
        right: -100px;
        bottom: 92px;
        width: 280px;
        height: 360px;
    }

    .login-panel {
        max-width: 100%;
        padding: 34px 24px 30px;
    }

    .login-logo {
        max-width: 112px;
        margin-bottom: 14px;
    }

    .login-title h1 {
        font-size: 34px;
    }

    .login-title::after {
        margin: 16px 0 16px;
    }

    .login-copy p {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .microsoft-login-btn {
        min-height: 58px;
        font-size: 18px;
    }

    .microsoft-mark {
        grid-template-columns: repeat(2, 14px);
        grid-template-rows: repeat(2, 14px);
    }

    .login-security {
        margin-top: 28px;
        align-items: flex-start;
    }
}
