.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #18212f 0%,
            #26354d 55%,
            #2f6fed 100%
        );
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-panel {
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
    padding: 38px;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #2f6fed;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.login-logo svg {
    display: block;
    width: 34px;
    height: 34px;
}

.login-header h1 {
    margin: 18px 0 6px;
    font-size: 30px;
}

.login-header p {
    margin: 0;
    color: #6b7280;
}

.microsoft-login-button,
.local-login-button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    font-weight: 700;
}

.microsoft-login-button {
    border: 1px solid #cfd5dc;
    background: #ffffff;
    color: #1f2937;
}

.microsoft-login-button:hover {
    background: #f4f6f8;
}

.microsoft-logo {
    display: grid;
    width: 18px;
    height: 18px;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

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

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

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

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

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #8a929d;
}

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

.local-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 13px;
    outline: none;
}

.form-field input:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgb(47 111 237 / 14%);
}

.local-login-button {
    border: 0;
    background: #2f6fed;
    color: #ffffff;
    cursor: pointer;
}

.local-login-button:hover {
    background: #245dcc;
}

@media (max-width: 520px) {
    .login-page {
        padding: 14px;
    }

    .login-panel {
        padding: 28px 22px;
    }
}


.auth-error-message,
.auth-success-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
}

.auth-error-message {
    border: 1px solid #efb3b3;
    background: #fff1f1;
    color: #9f1d1d;
}

.auth-success-message {
    border: 1px solid #a7d7b8;
    background: #effaf3;
    color: #176b37;
}

.local-login-error {
    border: 1px solid #efb3b3;
    border-radius: 7px;
    background: #fff1f1;
    color: #9f1d1d;
    padding: 10px 12px;
    font-size: 13px;
}

.password-panel {
    max-width: 460px;
}

.password-account-label,
.auth-form-help {
    color: #667085;
    font-size: 13px;
}


.local-login-button:disabled {
    background: #7f9edc;
    cursor: not-allowed;
}

.auth-session-refreshed-message,
.local-login-session-notice {
    border: 1px solid #e4c76b;
    border-radius: 7px;
    background: #fff9df;
    color: #755b00;
    padding: 10px 12px;
    font-size: 13px;
}

.auth-session-refreshed-message {
    margin-bottom: 16px;
}

.local-login-reload-button {
    min-height: 42px;
    border: 1px solid #c7a93f;
    border-radius: 8px;
    background: #fffdf2;
    color: #684f00;
    cursor: pointer;
    font-weight: 700;
}

.local-login-reload-button:hover {
    background: #fff7cf;
}

.initial-setup-container {
    max-width: 560px;
}

.initial-setup-panel {
    max-width: 560px;
}

.initial-setup-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    color: #667085;
    font-size: 13px;
}

.initial-setup-steps span,
.initial-setup-steps strong {
    border-radius: 8px;
    background: #f3f5f8;
    padding: 9px 12px;
    text-align: center;
}

.initial-setup-steps strong {
    background: #eaf1ff;
    color: #245dcc;
}

.form-field-error {
    color: #9f1d1d;
    font-size: 13px;
}

.initial-setup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.secondary-auth-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
}

.secondary-auth-button:hover {
    background: #f4f6f8;
}

@media (max-width: 520px) {
    .initial-setup-actions {
        grid-template-columns: 1fr;
    }
}

.initial-setup-exit-form {
    margin-top: 10px;
}

.initial-setup-exit-form .secondary-auth-button {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}
