/* 
 * Stock Traders Daily Keycloak Theme - Complete Reset
 * This file completely overrides all default Keycloak styling
 */

/* COMPLETE LOGO REMOVAL */
:root {
    --keycloak-logo-url: none !important;
    --keycloak-bg-logo-url: none !important;
    --keycloak-logo-height: 0 !important;
    --keycloak-logo-width: 0 !important;
    --keycloak-card-top-color: transparent !important;
}

/* Hide ALL logo elements completely */
div.kc-logo-text,
.kc-logo-text,
.kc-logo,
.keycloak-logo {
    background-image: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide any images with logo or keycloak in the name */
img[src*="logo"],
img[src*="keycloak"],
[style*="keycloak"],
[style*="logo"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Reset Keycloak container layout completely */
.pf-v5-c-login__container {
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    display: flex !important;
    background: none !important;
}

/* Reset header styling completely */
.pf-v5-c-login__main-header {
    border-top: none !important;
    border: none !important;
    background-image: none !important;
}

/* Reset body background completely */
.login-pf body {
    background: none !important;
    background-image: none !important;
    height: auto !important;
}

/* Reset any background images anywhere */
* {
    background-image: none !important;
}

/* Allow only our custom header content */
.pf-v5-c-login__main-header * {
    background: none !important;
    background-image: none !important;
}

/* Reset footer spacing */
.pf-v5-c-login__main-footer-band:first-child {
    margin-block-start: 0 !important;
}

.pf-v5-c-login__main-footer-band:last-child {
    padding-bottom: 0 !important;
}

/* Clean tooltip styling */
.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text {
    top: -3px;
    left: 160%;
    background-color: rgba(0, 0, 0, 0.8);
    visibility: hidden;
    color: #fff;
    min-width: 130px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.6);
    padding: 5px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1000;
}

.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
}

/* Utility resets */
#kc-recovery-codes-list {
    columns: 2;
}

#certificate_subjectDN {
    overflow-wrap: break-word;
}

#kc-verify-email-form {
    margin-top: 24px;
    margin-bottom: 24px;
}

#kc-header-wrapper {
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2em;
    white-space: normal;
    color: inherit;
    text-align: center;
    background: none !important;
    background-image: none !important;
}

/* Social providers clean styling */
#kc-social-providers svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* Remove any responsive logo rules */
@media (min-width: 768px) {
    div.pf-v5-c-login__main-header {
        grid-template-columns: none !important;
        background: none !important;
        background-image: none !important;
    }
    
    .kc-logo-text,
    div.kc-logo-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .kc-logo-text,
    div.kc-logo-text {
        display: none !important;
    }
}

/* Force hide on all screen sizes */
@media screen {
    .kc-logo-text,
    div.kc-logo-text,
    [class*="logo"],
    [id*="logo"] {
        display: none !important;
        visibility: hidden !important;
    }
}
