/* 
  Ashborn Account Theme - Premium Glassmorphism
  Compatible with Keycloak Account Console v3 (v19+)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03); 
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #ffffff;
    --primary-color: #ffffff;
}

/* Force background globally */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background: url('../../../login/resources/img/background.png') no-repeat center center fixed !important;
    background-size: cover !important;
    color: white !important;
    overflow-x: hidden;
}

/* Page Layout Overrides */
.pf-v5-c-page, .pf-c-page {
    background: rgba(0, 0, 0, 0.6) !important; /* Semi-transparent overlay to keep leaves visible but readable */
    backdrop-filter: blur(10px);
}

/* Hide default Keycloak Logo everywhere in header/masthead */
.pf-v5-c-masthead__brand svg,
.pf-v5-c-masthead__brand img,
.pf-v5-c-masthead__logo svg,
.pf-v5-c-masthead__logo img,
.pf-v5-c-page__header-brand-link img,
.pf-c-page__header-brand-link img,
.pf-v5-c-brand,
.pf-c-brand,
[class*="masthead__brand"] svg,
[class*="masthead__brand"] img,
[class*="masthead__logo"] svg,
[class*="masthead__logo"] img,
header a svg,
header a img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Insert ASHBORN Logo */
.pf-v5-c-masthead__brand,
.pf-v5-c-masthead__logo,
.pf-v5-c-page__header-brand-link,
.pf-c-page__header-brand-link,
[class*="masthead__brand"] {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.pf-v5-c-masthead__brand::before,
.pf-v5-c-masthead__logo::before,
.pf-v5-c-page__header-brand-link::before,
.pf-c-page__header-brand-link::before,
[class*="masthead__brand"]::before {
    content: "ASHBORN" !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.04em !important;
    background: linear-gradient(to right, #ffffff, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
    margin-right: 1rem;
}

.pf-v5-c-page__header, .pf-c-page__header {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border) !important;
}

/* Header Links Color Neutralization */
.pf-v5-c-page__header-tools .pf-v5-c-button.pf-m-link, 
.pf-c-page__header-tools .pf-c-button.pf-m-link,
.pf-v5-c-dropdown__toggle {
    color: white !important;
}

/* Sidebar Styling */
.pf-v5-c-page__sidebar, .pf-c-page__sidebar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(40px);
    border-right: 1px solid var(--glass-border) !important;
}

.pf-v5-c-nav__link, .pf-c-nav__link {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.pf-v5-c-nav__link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.pf-v5-c-nav__link.pf-m-current, .pf-c-nav__link.pf-m-current {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Content Container */
.pf-v5-c-page__main, .pf-c-page__main {
    background: transparent !important;
}

.pf-v5-c-page__main-section, .pf-c-page__main-section {
    background: transparent !important;
}

/* Card Styling - Premium Glassmorphism */
.pf-v5-c-card, .pf-c-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(50px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(150%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    transition: transform 0.3s ease;
}

.pf-v5-c-card:hover, .pf-c-card:hover {
    transform: translateY(-5px);
}

.pf-v5-c-card__title, .pf-c-card__title, h1, h2, h3 {
    color: white !important;
    font-weight: 700 !important;
}

/* Form Elements */
.pf-v5-c-form-control, .pf-c-form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: white !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    transition: all 0.3s ease;
}

.pf-v5-c-form-control:focus, .pf-c-form-control:focus {
    border-bottom-color: white !important;
    box-shadow: none !important;
}

/* Primary Buttons - Bold Ashborn Style */
.pf-v5-c-button.pf-m-primary, .pf-c-button.pf-m-primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 0.5rem !important;
    padding: 1.25rem 2rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.pf-v5-c-button.pf-m-primary:hover, .pf-c-button.pf-m-primary:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Cancel / Secondary buttons */
.pf-v5-c-button.pf-m-link, .pf-c-button.pf-m-link {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
}

.pf-v5-c-button.pf-m-link:hover, .pf-c-button.pf-m-link:hover {
    color: white !important;
    text-decoration: underline !important;
}
