/* Login & activation pages — Aktive Passiver design system */

.login-page,
.activation-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(55, 81, 151, 0.24), transparent 32%),
        linear-gradient(145deg, #0D1B3E 0%, #132754 56%, #1E3A6E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.4s ease;
}

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

.login-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9375rem;
    margin: 0;
}

.login-card,
.activation-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.login-card .card-body,
.activation-card .card-body {
    padding: 0;
}

.signin-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: center;
}

.signin-copy {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 22px;
    text-align: center;
}

.auth-alert {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 18px;
}

.microsoft-sso-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #0078D4;
    color: #ffffff;
    border: 1px solid #0078D4;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.22);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.microsoft-sso-button:hover {
    background: #106EBE;
    border-color: #106EBE;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.28);
}

.microsoft-sso-button:focus-visible {
    outline: 3px solid rgba(0, 120, 212, 0.28);
    outline-offset: 2px;
}

.microsoft-sso-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    pointer-events: none;
}

.microsoft-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.login-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 24px 0 18px;
    opacity: 1;
}

.login-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 22px;
    font-size: 0.8125rem;
}

.support-label {
    color: rgba(255, 255, 255, 0.58);
}

.support-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.support-link:hover {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
}

.auth-state-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-state-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.35rem;
}

.activation-message {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 16px;
}

.activation-copy,
.activation-contact {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.activation-copy {
    margin-bottom: 12px;
}

.secondary-auth-button {
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
}

.secondary-auth-button:hover {
    border-color: rgba(255, 255, 255, 0.48) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.login-page ~ .sidebar,
.login-page ~ .top-navbar,
.activation-page ~ .sidebar,
.activation-page ~ .top-navbar,
body:has(.login-page) .sidebar,
body:has(.login-page) .top-navbar,
body:has(.activation-page) .sidebar,
body:has(.activation-page) .top-navbar {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .login-page,
    .activation-page {
        align-items: flex-start;
        padding-top: 48px;
    }

    .login-card .card-body,
    .activation-card .card-body {
        padding: 0;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-header {
        margin-bottom: 24px;
    }
}
