/* HiPrivacy Login Theme — Figma-accurate design */

/* =============================================
   Font: Plus Jakarta Sans + DM Sans (self-hosted, GDPR-safe)
   ============================================= */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   Reset Keycloak defaults
   ============================================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #0b0d15 !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

#kc-header,
#kc-header-wrapper,
#kc-locale,
#kc-registration,
.login-pf-header,
.login-pf-page-header {
    display: none !important;
}

.login-pf,
.login-pf-page,
.card-pf,
#kc-content,
#kc-content-wrapper,
#kc-container,
#kc-container-wrapper,
#kc-form,
#kc-form-wrapper {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* =============================================
   Split Layout
   ============================================= */
.hp-split-layout {
    display: flex !important;
    height: 100vh !important;
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: linear-gradient(112.66deg, #0b0d15 3.07%, #10182c 71.57%);
    overflow: hidden;
}

/* =============================================
   Left: Brand Side
   ============================================= */
.hp-brand-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

/* Gradient blur orbs — on split-layout so they span full width */
/* Small purple glow (Figma: 182x182, left:150, top:375 on 1440x1024) */
.hp-split-layout::before {
    content: '';
    position: absolute;
    top: 36.6%;
    left: 10.4%;
    width: 182px;
    height: 182px;
    background: linear-gradient(135deg, rgba(97, 95, 255, 0.2) 0%, rgba(173, 70, 255, 0.2) 100%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}

/* Large teal/blue glow (Figma: 555x555, left:468, top:806 on 1440x1024) */
.hp-split-layout::after {
    content: '';
    position: absolute;
    top: 78.7%;
    left: 32.5%;
    width: 555px;
    height: 555px;
    background: linear-gradient(135deg, rgba(89, 155, 255, 0.2) 0%, rgba(3, 132, 167, 0.2) 98.56%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}

.hp-brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Logo */
.hp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(114, 137, 188, 0.15) 0%, rgba(22, 22, 36, 0.45) 100%);
    border: 1.3px solid rgba(89, 155, 255, 0.37);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 22px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    box-shadow: 0 0 19.7px rgba(89, 155, 255, 0.25), inset 0 1.3px 1.3px rgba(255, 255, 255, 0.20);
}

.hp-logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Text content group */
.hp-text-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Headline */
.hp-headline {
    font-size: 32px;
    font-weight: 500;
    color: #ffffff;
    line-height: 40px;
    margin: 0;
    letter-spacing: -1px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.hp-headline-accent {
    display: block;
    background: linear-gradient(90deg, #a5b4fc 0%, #5c6bc0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* Description */
.hp-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
    max-width: 350px;
}

/* Feature Chips */
.hp-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 4px 0;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 16px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Terms links */
.hp-terms {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.hp-terms-link {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.15px;
    text-decoration: underline;
    color: #93C5FD;
}

.hp-terms-link:hover {
    color: #bfdbfe;
}

.hp-terms-separator {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.15px;
    color: #93C5FD;
}

/* =============================================
   Right: Form Side
   ============================================= */
.hp-form-side {
    flex: 0 0 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 20px 20px 20px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hp-form-panel {
    background: #f6f7fb;
    border-radius: 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.hp-form-card {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Form Header */
.hp-form-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: -1px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.hp-form-subtitle {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Form Fields */
.hp-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#kc-register-form .hp-form-fields {
    gap: 16px;
}

.hp-name-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.hp-name-row .hp-field {
    flex: 1;
    min-width: 0;
}

.hp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-input-wrapper:has(input[aria-invalid="true"]) {
    border-color: #ef4444;
}

.hp-input-wrapper--error {
    border-color: #ef4444 !important;
}

.hp-input-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid #DCDFE4;
    border-radius: 8px;
    height: 44px;
    box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.036);
}

.hp-field-label {
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    margin-bottom: 0;
    display: block;
    line-height: 16px;
}

.hp-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.hp-field-label-row .hp-field-label {
    margin-bottom: 0;
}

.hp-forgot-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: underline;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.hp-forgot-link:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* Input styling */
.hp-input,
input.hp-input,
#username,
#password,
input[name="username"],
input[name="password"] {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #111827 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

/* Override autofill blue background */
.hp-input:-webkit-autofill,
#username:-webkit-autofill,
#password:-webkit-autofill,
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #212121 !important;
    background-color: #ffffff !important;
}

.hp-input::placeholder,
#username::placeholder,
#password::placeholder {
    color: #9e9e9e !important;
}

/* Password field: asterisks instead of dots (only when masked) */
input[type="password"]#password,
input[type="password"][name="password"] {
    -webkit-text-security: square !important;
}
input[type="text"]#password,
input[type="text"][name="password"] {
    -webkit-text-security: none !important;
}

/* Password input — leave room for toggle button */
.hp-input-wrapper--password .hp-input,
.hp-input-wrapper--password #password {
    padding-right: 44px !important;
}

/* Password visibility toggle */
.hp-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 2;
}

.hp-password-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

.hp-input:focus,
#username:focus,
#password:focus {
    outline: 2px solid #6366f1 !important;
    outline-offset: -2px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Error messages */
.hp-error {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Hide errors and alerts until first form submission */
.hp-hide-errors .hp-error,
.hp-hide-errors ~ .hp-alert {
    display: none !important;
}

/* Required field marker */
.hp-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Password hint */
.hp-password-hint {
    padding: 0 4px;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 16px;
    margin-bottom: 16px;
}

.hp-password-hint span[data-rule] {
    transition: color 0.15s;
}

.hp-password-hint span[data-rule].hp-rule-pass {
    color: #22c55e;
}

.hp-password-hint span[data-rule].hp-rule-fail {
    color: #ef4444;
}

/* Remember Me */
.hp-remember-me {
    margin-top: 32px;
    padding-left: 12px;
}

.hp-remember-me label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    height: 20px;
}

.hp-remember-me span {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

/* Custom checkbox — 15x15 visible (Figma: 20x20 container, vector inset 12.5%) */
.hp-remember-me input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    border: 1.5px solid rgba(17, 24, 39, 0.64);
    border-radius: 3px;
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.hp-remember-me input[type="checkbox"]:checked {
    background: #2A2F6F;
    border-color: #2A2F6F;
}

.hp-remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.hp-remember-me input[type="checkbox"]:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Form buttons container */
#kc-form-buttons {
    margin-top: 32px;
}

/* Submit Button */
.hp-submit-btn {
    width: 100%;
    height: 40px;
    background: #2a2f6f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    transition: background 0.15s;
    box-shadow: 0 2px 6px rgba(42, 47, 111, 0.35);
}

.hp-submit-btn:hover {
    background: #1e2357;
}

.hp-submit-btn:active {
    background: #191d4a;
}

/* Secondary button (cancel) */
.hp-submit-btn--secondary {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #D1D5DB !important;
    box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.036) !important;
}

.hp-submit-btn--secondary:hover {
    background: #f3f4f6 !important;
}

/* Back to login link */
.hp-back-to-login {
    text-align: center;
}

.hp-back-to-login a {
    font-size: 13px;
    font-weight: 500;
    color: #2A2F6F;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.hp-back-to-login a:hover {
    text-decoration: underline;
    color: #1e2357;
}

/* Sign Up Link */
.hp-signup-link {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    text-align: left;
}

.hp-signup-link + .hp-alt-login {
    margin-top: 16px;
}

#hp-login-form-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Back button (full-width secondary) */
.hp-back-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 8px 22px;
    gap: 8px;
    background: rgba(17, 24, 39, 0.04);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: none;
    font-family: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.hp-back-btn:hover {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    text-decoration: none;
}

/* =============================================
   Check Inbox (info page)
   ============================================= */
.hp-check-inbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.hp-check-inbox-icon {
    width: 80px;
    height: 80px;
    background: #E1F5FE;
    border: 1px solid rgba(89, 155, 255, 0.37);
    border-radius: 10.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.hp-check-inbox-icon svg {
    flex-shrink: 0;
}

.hp-check-inbox-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #111827;
    margin: 0 0 -4px 0;
    letter-spacing: -1px;
}

.hp-check-inbox-subtitle {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6b7280;
    margin: 0;
}

.hp-check-inbox-subtitle strong {
    color: #111827;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.hp-check-inbox-hint {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #6b7280;
    margin: 0;
}

.hp-check-inbox-link {
    color: #6b7280;
    text-decoration: underline;
    font-weight: 500;
}

.hp-check-inbox-link:hover {
    color: #4b5563;
}

.hp-check-inbox .hp-back-btn {
    margin-top: 8px;
}

/* =============================================
   Password Changed (success page)
   ============================================= */
.hp-password-changed {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hp-password-changed-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.37);
    border-radius: 10.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.hp-password-changed-icon svg {
    flex-shrink: 0;
}

.hp-password-changed-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}

.hp-password-changed-subtitle {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.hp-password-changed .hp-submit-btn {
    text-decoration: none;
    width: 350px;
    padding: 8px 22px;
}

/* Reset password page: spacing between header and form */
#hp-reset-form-view .hp-form-header {
    margin-bottom: 32px;
}

/* Update password page: spacing between header and form */
#hp-update-password-form-view .hp-form-header {
    margin-bottom: 32px;
}

/* =============================================
   Alt Login Section
   ============================================= */
.hp-alt-login {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Divider */
.hp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-divider::before,
.hp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.hp-divider span {
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Social Login Buttons */
.hp-social-buttons {
    display: flex;
    gap: 16px;
}

.hp-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: box-shadow 0.15s;
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.20), 0 1px 1px 0 rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
}

.hp-social-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #111827;
}

/* =============================================
   Alert Messages
   ============================================= */
.hp-alert {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.hp-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.hp-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.hp-alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.hp-alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* =============================================
   Hide Keycloak default social providers
   ============================================= */
#kc-social-providers {
    display: none !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1200px) {
    .hp-brand-side,
    .hp-form-side {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .hp-split-layout {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
        overflow: auto !important;
    }

    html, body {
        overflow: auto !important;
    }

    .hp-brand-side {
        flex: none;
        padding: 48px 24px;
    }

    .hp-form-side {
        flex: none;
        padding: 48px 24px;
        border-radius: 16px 16px 0 0;
    }

    .hp-headline {
        font-size: 26px;
        line-height: 34px;
    }
}

@media (max-width: 480px) {
    .hp-brand-side,
    .hp-form-side {
        padding: 32px 20px;
    }

    .hp-social-buttons {
        flex-direction: column;
    }
}
