:root {
    --keycloak-logo-url: url(../img/ug-logo.png);
    --keycloak-logo-height: 55px;
    --keycloak-logo-width: 174px;
}
#kc-header-wrapper .kc-logo-text,
div.kc-logo-text {
    background-image: url(../img/ug-logo.png) !important;
    height: 55px !important;
    width: 174px !important;
    max-width: 100% !important;
}
.pf-v5-c-login__main-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
.pf-v5-c-login__main-header h1,
#kc-page-title {
    white-space: nowrap !important;
    text-align: center !important;
    justify-self: center !important;
    margin: 0 auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   Sign In — 3D neon pill button with electric aura
   ═══════════════════════════════════════════════════════════════ */

#kc-login {
    /* Shape & layout */
    width: auto !important;
    min-width: 220px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 14px 52px !important;
    border-radius: 60px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    z-index: 1 !important;

    /* Dark navy glass — white text legible on any background */
    background: rgba(10, 22, 60, 0.55) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;

    /* Frosted rim */
    border: 1px solid rgba(255, 255, 255, 0.28) !important;

    /* Soft depth */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(255, 255, 255, 0.08),
        0 6px 24px rgba(0, 0, 0, 0.28) !important;

    /* Typography */
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;

    /* Animation */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Glossy highlight overlay */
#kc-login::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52% !important;
    border-radius: 60px 60px 80px 80px !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        transparent 100%
    ) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Arrow indicator — disabled, arrow is in button text via messages_en.properties */

/* Hover — glow appears only on cursor */
#kc-login:hover {
    transform: translateY(-3px) scale(1.03) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(10, 22, 70, 0.70) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px rgba(255, 255, 255, 0.10),
        0 0 16px rgba(255, 255, 255, 0.18),
        0 8px 30px rgba(0, 0, 0, 0.35) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Active — pressed depth */
#kc-login:active {
    transform: translateY(0px) scale(0.99) !important;
    background: rgba(10, 22, 60, 0.62) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.22),
        0 2px 10px rgba(0, 0, 0, 0.30) !important;
}

/* Focus ring for accessibility */
#kc-login:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85) !important;
    outline-offset: 4px !important;
}

/* (neonPulse animation removed — glow is hover-only) */

/* ═══════════════════════════════════════════════════════════════
   2FA / Passkey pages — button spacing
   ═══════════════════════════════════════════════════════════════ */

/* Space between Sign In / Sign in with Passkey and "Try Another Way" */
#kc-select-try-another-way-form {
    margin-top: 24px !important;
}

#try-another-way {
    margin-top: 8px !important;
    display: block !important;
    text-align: center !important;
}

/* Passkey authenticate button — add bottom margin */
#authenticateWebAuthnButton {
    margin-bottom: 10px !important;
}

/* Mobile: extra breathing room between buttons */
@media (max-width: 480px) {
    #kc-select-try-another-way-form {
        margin-top: 28px !important;
    }

    #kc-login {
        min-width: 180px !important;
        padding: 14px 40px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Social providers
   ═══════════════════════════════════════════════════════════════ */

/* Social providers — center the list */
#kc-social-providers ul {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
}

/* Microsoft 365 — square logo button */
#social-microsoft {
    width: 48px !important;
    height: 48px !important;
    min-width: unset !important;
    padding: 8px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

#social-microsoft span {
    display: none !important;
}

#social-microsoft svg {
    display: none !important;
}

#social-microsoft::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='0' y='0' width='10' height='10' fill='%23F25022'/%3E%3Crect x='11' y='0' width='10' height='10' fill='%237FBA00'/%3E%3Crect x='0' y='11' width='10' height='10' fill='%2300A4EF'/%3E%3Crect x='11' y='11' width='10' height='10' fill='%23FFB900'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pf-v5-c-login__main-footer-band-item {
    white-space: pre-line !important;
    text-align: center !important;
    line-height: 1.8 !important;
}
