* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
}
body {
    font-family: Helvetica, Arial, sans-serif;
    background: linear-gradient(145deg, #001d2a 0%, #002a3a 50%, #073747 100%);
    color: #e7eef1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.login-bg:before,
.login-bg:after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
.login-bg:before {
    width: 540px;
    height: 540px;
    left: -220px;
    top: -220px;
    background: radial-gradient(circle, rgba(23, 158, 217, 0.14), transparent 68%);
}
.login-bg:after {
    width: 620px;
    height: 620px;
    right: -260px;
    bottom: -310px;
    background: radial-gradient(circle, rgba(9, 99, 138, 0.18), transparent 68%);
}
.login-shell {
    width: min(560px, 100%);
    position: relative;
    z-index: 1;
}
.login-reference-card {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 30px 38px 32px;
    border-radius: 20px;
    background-color: rgba(24, 63, 82, 0.28);
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.075) 0%,
        rgba(255, 255, 255, 0.022) 40%,
        rgba(21, 61, 79, 0.18) 100%
    );
    border: 1px solid rgba(160, 205, 220, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(24px) saturate(145%) brightness(1.04);
    backdrop-filter: blur(24px) saturate(145%) brightness(1.04);
}
.login-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 2px 4px 18px;
}
.scheduler-logo {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.scheduler-logo svg {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
}
.login-brand-main {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    white-space: nowrap;
}
.login-brand-cea {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.login-brand-divider {
    display: block;
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.78);
}
.login-brand-rmm {
    font-size: 27px;
    line-height: 1;
    font-weight: 500;
}
.login-brand-subtitle {
    margin-top: 7px;
    color: #e2edf1;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}
.login-reference-separator {
    height: 1px;
    width: 100%;
    background: rgba(160, 205, 220, 0.2);
    margin: 2px 0 24px;
}
.login-reference-heading {
    text-align: center;
    margin-bottom: 24px;
}
.login-reference-heading h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}
.login-reference-heading p {
    margin: 0;
    color: #b8c8ce;
    font-size: 13px;
    font-weight: 400;
}
.login-reference-field {
    display: block;
    margin: 15px 0;
}
.login-reference-field > span {
    display: block;
    margin-bottom: 7px;
    color: #e7eef1;
    font-size: 13px;
    font-weight: 500;
}
.login-input-shell {
    position: relative;
}
.login-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #b9cad0;
    z-index: 2;
    pointer-events: none;
}
.login-input-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-input-shell input {
    width: 100%;
    height: 52px;
    padding: 0 14px 0 45px;
    border-radius: 9px;
    background: rgba(4, 42, 58, 0.68);
    border: 1px solid rgba(87, 135, 153, 0.55);
    color: #fff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.login-input-shell input:focus {
    background: rgba(5, 47, 64, 0.78);
    border-color: #179ed9;
    box-shadow: 0 0 0 2px rgba(23, 158, 217, 0.16);
}
.error {
    font-size: 12px;
    line-height: 1.45;
    color: #ffd9dd;
    background: rgba(90, 37, 41, 0.78);
    border: 1px solid #8d4249;
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.signin {
    position: relative;
    width: 100%;
    height: 56px;
    margin-top: 20px;
    border-radius: 9px;
    border: 1px solid rgba(82, 190, 235, 0.72);
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        linear-gradient(135deg, #20a9e4 0%, #179ed9 55%, #1288bb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 2px 7px rgba(0, 0, 0, 0.14);
    transform: none;
}
.signin:hover,
.signin:focus-visible {
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(0, 0, 0, 0.14) 100%
        ),
        linear-gradient(135deg, #168ebb 0%, #107fa9 52%, #0b688d 100%);
    border-color: rgba(85, 188, 226, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.16),
        0 3px 9px rgba(0, 0, 0, 0.19);
    transform: none;
}
.login-reference-foot {
    margin-top: 22px;
    color: #c4d3d8;
    font-size: 11px;
    text-align: center;
}
.security-notice {
    margin-top: 18px;
    color: #9fb3bb;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

#loginSignInButton .login-signin-normal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loginSignInButton .login-signin-busy {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#loginSignInButton.signing-in .login-signin-normal {
    display: none;
}
#loginSignInButton.signing-in .login-signin-busy {
    display: flex;
}
.login-wait-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: schedulerLoginSpin 0.75s linear infinite;
    flex: 0 0 auto;
}
@keyframes schedulerLoginSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .login-reference-card {
        padding: 26px 22px;
    }
    .login-brand-row {
        gap: 12px;
    }
    .scheduler-logo {
        width: 68px;
        height: 68px;
    }
    .scheduler-logo svg {
        width: 64px;
        height: 64px;
    }
    .login-brand-cea {
        font-size: 28px;
    }
    .login-brand-rmm {
        font-size: 22px;
    }
    .login-brand-subtitle {
        font-size: 12px;
    }
}
