/* ============================================
   LOGIN.CSS - LueMobil THEME
   Organized by: Global → Components → Pages → Responsive
   ============================================ */

/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */

/* ============================================
   1. GLOBAL STYLES & RESET
   ============================================ */

/* Global font family - Roboto */
*:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-classic):not(.pficon):not([class^="pficon-"]):not([class*=" pficon-"]) {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Utility Classes */
.hide {
    display: none !important;
}

#moreDiv {
    display: none;
}

/* Legacy/Deprecated Styles */
.register_terms {
    width: 20px;
    height: 30px;
}

.register_terms_label {
    margin-left: 10px;
    margin-top: 5px;
}

.card-body {
    margin-top: 5px;
    background: white;
    padding: 7px;
    font-weight: 600;
    border-style: groove;
    border-radius: 15px;
}

.card-body ul {
    list-style: inside !important;
}

.card-body ul li {
    margin-bottom: 5px;
    margin-top: 5px;
}

/* ============================================
   2. LAYOUT & CONTAINERS
   ============================================ */

/* Base Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Login Page Layout */
.login-pf {
    background: none;
}

.login-pf body {
    background: #ECF1F5 !important;
    height: 100%;
    background-repeat: no-repeat;
    /* background-image: url("../img/desktop.svg"); */
    background-size: 100% 100vh;
    background-position: center;
}

/* Checkbox Label Spacing */
#checkbox-label {
    padding-left: 30px;
}

/* Container Wrapper */
#kc-container-wrapper {
    position: relative;
}

/* Content Wrapper */
#kc-content-wrapper {
    margin-top: 0;
}

/* Page Title / Logo Container */
#kc-page-title {
    /* Logo is visible by default - only hidden on specific pages */
}

h1#kc-page-title {
    margin: 0;
    padding: 0;
}

/* Card/Form Card */
.login-pf-page {
    padding-top: 0em;
    width: 100% !important;
}

.login-pf-page .card-pf {
    padding: 0 0 0 0 !important;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
}

.card-pf {
    margin: 0 auto;
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Container Base Styles */
.container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Form Options - Base spacing (responsive overrides in media queries) */
#kc-form-options {
    margin-bottom: 5vh;
}

/* ============================================
   3. SHARED COMPONENTS
   (Buttons, Inputs, Labels, Links, Checkboxes)
   ============================================ */

/* Input Labels */
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #6C757D;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    width: 100%;
}

/* Password Toggle (Eye Icon) */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.password-toggle:hover svg path {
    fill: #333333;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form Buttons Wrapper */
#kc-form-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

#kc-form-buttons input[type="submit"],
#kc-form-buttons #kc-registration-container {
    box-sizing: border-box;
    width: 350px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Buttons - Primary */
.login-pf-page .btn-primary {
    margin-top: 0;
    background: #E97135 !important;
    border-color: #E97135 !important;
}

.btn-default, .pf-m-secondary {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

/* Submit buttons are now in Shared Form Styles section above */

/* Checkboxes */
#kc-form-options .checkbox {
    margin-top: auto;
    color: #72767b;
}

#kc-form-login .checkbox input[type=checkbox] {
    margin-top: 3px !important;
    accent-color: #E97135;
}

/* Welcome Section (shared base) */
#kc-welcome.welcome-section {
    margin: 0 0 20px 0;
    padding: 10px 0 10px 12px;
}

#kc-welcome.welcome-section h1 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #333333;
}

#kc-welcome.welcome-section p {
    margin: 0 0 10px 0;
    color: #666666;
}

/* Links - Base Styles */
.resend-link a {
    color: #000000 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    background: none !important;
    border: none !important;
    padding: 0;
    display: inline;
    cursor: pointer;
}

.resend-link a:hover {
    text-decoration: underline;
    color: #000000;
}

/* ============================================
   4. SHARED FORM STYLES (All Login-Related Forms)
   ============================================ */

.login-pf-page .login-pf-header h1 {
    font-size: 20px !important;
}

.h1, h1 {
    font-size: 20px !important;
}

/* Form Containers - Shared */
#kc-form-login,
#kc-register-form,
#kc-reset-password-form,
#kc-passwd-update-form {
    position: relative;
}

/* Form Labels (Input Fields) - Shared Base Styles */
#kc-form-login label,
#kc-register-form label,
#kc-reset-password-form label,
#kc-passwd-update-form label {
    display: block;
    border: 1px solid #ffffff;
    border-radius: 0px;
    background: #ffffff;
    padding: 5px;
    padding-left: 12px;
    color: #6C757D;
    cursor: text;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
  }

/* Form Labels - Focus State (Default: Black Border) */
  #kc-form-login label:focus-within,
#kc-register-form label:focus-within,
#kc-passwd-update-form label:focus-within {
    border: 1px solid #000;
  }

/* Reset Password Form - White border on focus (page-specific override) */
#kc-reset-password-form label:focus-within {
    border: 1px solid #ffffff !important;
}

/* Password Fields - Remove borders completely (shared) */
#kc-form-login label:has(.password-input-wrapper),
#kc-form-login label:has(.password-input-wrapper):focus-within,
#kc-register-form label:has(.password-input-wrapper):focus-within,
#kc-passwd-update-form label:has(.password-input-wrapper),
#kc-passwd-update-form label:has(.password-input-wrapper):focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Password Input Wrapper - Remove borders (shared) */
#kc-form-login label:has(.password-input-wrapper) .password-input-wrapper,
#kc-form-login label:has(.password-input-wrapper) input,
#kc-register-form label:has(.password-input-wrapper) .password-input-wrapper,
#kc-register-form label:has(.password-input-wrapper) input,
#kc-passwd-update-form label:has(.password-input-wrapper) .password-input-wrapper,
#kc-passwd-update-form label:has(.password-input-wrapper) input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Form Groups - Remove borders for password fields (shared) */
#kc-form-login .form-group:has(label:has(.password-input-wrapper)),
#kc-form-login .form-group:has(#password) {
    border: none !important;
    outline: none !important;
}

/* Password Label by ID - Remove borders (shared) */
#kc-form-login label[for="password"] {
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Input Fields Inside Labels - Shared Base Styles */
#kc-form-login label>input,
#kc-register-form label>input[type="text"],
#kc-register-form label>input[type="password"],
#kc-register-form label>input[type="email"],
#kc-reset-password-form label>input,
#kc-passwd-update-form label>input {
    outline: none;
    border: none;
    background: transparent;
    font-size: larger;
    width: 100%;
    height: 30px;
    padding: 5px 0;
    box-sizing: border-box;
  }

/* SVG Icons - Shared Base */
#kc-form-login svg,
#kc-register-form svg,
#kc-reset-password-form svg {
    padding: 3px;
  }

/* Update Password Form - Page-specific SVG padding override */
#kc-passwd-update-form svg {
    padding: 1px;
}

/* Update Password Form - Page-specific label padding override */
#kc-passwd-update-form label {
    padding-left: 30px;
}

/* Buttons - Submit Buttons (shared across all forms) */
#kc-register-form input[type="submit"],
#kc-reset-password-form input[type="submit"],
#kc-passwd-update-form input[type="submit"] {
    background: #E97135;
    border-radius: 10px;
    width: 350px !important;
    font-weight: 700;
    color: #ffffff;
}

/* ============================================
   5. LOGIN PAGE
   ============================================ */

/* Login Form Groups */
#kc-form-login .form-group {
    position: relative;
}

/* Form group positioning - reserved for custom positioning if needed */
#kc-form-login .form-group:first-child {
    /* Reserved for custom positioning for first form group (email) */
}

#kc-form-login .form-group:nth-child(2) {
    /* Reserved for custom positioning for second form group (password) */
}

#kc-form-login div.form-group:last-of-type {
    margin-bottom: 0px;
}

/* Login Button */
#kc-login {
    width: 350px !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
    background: #E97135;
    color: #ffffff;
    font-weight: 700;
    border: none;
}

/* Sign Up Link/Button */
.login-pf-page .login-pf-signup {
    margin-top: 20px;
    text-align: center;
}

.login-pf-page .login-pf-signup a {
    margin-left: 0px;
    width: 350px !important;
    height: 50px;
    background: #000000;
    border-radius: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #ffffff;
    font-size: large;
    font-weight: 400;
    border: 1px solid #000000;
    box-sizing: border-box;
}

/* Forgot Password Link */
.forgot-password-centered {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-password-centered a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.forgot-password-centered a:hover {
    text-decoration: underline;
}

/* ============================================
   6. REGISTER PAGE
   ============================================ */

/* Register Form - Uses shared styles above, only page-specific overrides below */

#kc-register-form input {
    height: 44px;
    background: #ffffff;
    border: 1px solid #757575;
    border-radius: 0px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    outline: none;
  }

#kc-register-form input:focus-within {
    border: 1px solid #000;
  }

#kc-register-form input::placeholder {
    color: #757575;
    font-weight: 200;
    font-size: 14px;
}

/* Keep password focus border white for register as well */
#kc-register-form label:has(.password-input-wrapper):focus-within {
    border: 1px solid #ffffff;
}

/* Register Page Welcome Section */
#kc-register-form #kc-welcome.welcome-section {
    padding: 10px 0 10px 12px;
}

#kc-register-form #kc-welcome.welcome-section h1 {
    margin: 0 0 3px 0;
    font-weight: 700;
    color: #333333;
}

/* Register Page Content Wrapper */
body:has(#kc-register-form) #kc-content-wrapper {
    margin-top: 0px;
}

/* Register Page Title */
body:has(#kc-register-form) #kc-page-title {
    margin-top: 0px !important;
    padding-top: 0px;
}

/* Register Page Paragraph Override */
#kc-register-form p {
    margin: 0 0 5px 0;
}

/* Register Page Logo */
body:has(#kc-register-form) #kc-page-title img {
    width: 80px !important;
    height: auto !important;
}

#kc-page-title:has(+ * #kc-register-form) img,
#kc-page-title img[src*="logo"] {
    width: 80px !important;
    height: auto !important;
}

/* Next Steps Panel */
#kc-register-form .next-steps-panel {
    background: #ECEFF1;
    padding: 16px;
    margin-top: 0px;
    border-top: 1px solid #e0e0e0;
    color: #000000 !important;
}

#kc-register-form .next-steps-panel *,
#kc-register-form .next-steps-panel a {
    color: #000000 !important;
}

#kc-register-form .next-steps-title {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #000000 !important;
}

/* Important Notice Section */
#kc-register-form .important-notice {
    margin-top: 20px;
    color: #000000 !important;
}

#kc-register-form .important-notice .important-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000 !important;
}

#kc-register-form .important-notice,
#kc-register-form .important-notice .important-title,
#kc-register-form .important-notice p {
    color: #000000 !important;
}

/* Next Steps Checkboxes */
#kc-register-form .next-steps-panel .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none !important;
    background: transparent !important;
    padding: 0px 0px 0px 35px !important;
    min-height: auto !important;
    color: #000000;
}

#kc-register-form .next-steps-panel .checkbox label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E97135;
}

/* Register Page - Back to Login Link */
/* Match the styling of Forgot Password link on login page */
#kc-register-form #kc-form-options {
    text-align: center;
    margin-bottom: 20px;
}

#kc-register-form #kc-form-options span a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

#kc-register-form #kc-form-options span a:hover {
    text-decoration: underline;
}

/* Register Form Groups */
#kc-register-form div.form-group:last-of-type {
    margin-bottom: 0px;
}

/* ============================================
   7. RESET PASSWORD PAGE
   ============================================ */

/* Reset Password Form - Uses shared styles above, only page-specific overrides below */

/* Reset Password Title */
#kc-reset-password-form .reset-password-title {
    color: #333333;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-left: -6px;
}

/* Reset Password Instruction Text */
#kc-reset-password-form .reset-password-instruction {
    color: #333333;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Reset Password Input - Uses shared label>input styles above */

#kc-reset-password-form input {
    height: 44px;
    background: #ffffff;
    border: 1px solid #757575;
    border-radius: 0px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    outline: none;
}

#kc-reset-password-form input:focus,
#kc-reset-password-form input:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

  #kc-reset-password-form input::placeholder {
    color: #757575;
    font-weight: 200;
    font-size: 14px;
  }

/* Reset Password Form Buttons Wrapper */
#kc-reset-password-form #kc-form-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 0px;
    max-width: 0px;
    margin-left: 170px;
    gap: 20px;
    margin-top: 300px;
}

/* Back to Sign In Link */
#kc-reset-password-form .back-to-signin {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    white-space: nowrap;
}

#kc-reset-password-form .back-to-signin a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

#kc-reset-password-form .back-to-signin a:hover {
    text-decoration: underline;
}

/* Reset Password Page Container */
body.reset-password-page .login-pf .container,
body:has(#kc-reset-password-form) .login-pf .container,
body:has(#kc-reset-password-form) .container,
.login-pf:has(#kc-reset-password-form) .container {
    width: 90% !important;
    max-width: 90% !important;
}

/* Reset Password Page Paragraphs */
body.reset-password-page p,
body:has(#kc-reset-password-form) p {
    margin: 0 0 10px 13px !important;
}

/* ============================================
   8. VERIFY EMAIL PAGE
   ============================================ */

/* Verify Email Page Background */
body:has(.verify-email-header),
body:has(#kc-content:has(.verify-email-header)),
body:has(.verify-email-content) {
    background: #ECF1F5 !important;
}

#kc-content:has(.verify-email-header),
#kc-content:has(.verify-email-content) {
    background: #ECF1F5;
}

/* Hide Alert Warning */
body:has(.verify-email-header) .alert-warning,
body:has(.verify-email-header) .pf-c-alert.pf-m-warning,
body:has(.verify-email-header) .pf-c-alert.pf-m-inline.pf-m-warning,
body:has(.verify-email-content) .alert-warning,
body:has(.verify-email-content) .pf-c-alert.pf-m-warning,
body:has(.verify-email-content) .pf-c-alert.pf-m-inline.pf-m-warning {
    display: none !important;
}

/* Verify Email Page Card Padding */
.login-pf-page:has(.verify-email-header) .card-pf,
.login-pf-page:has(.verify-email-content) .card-pf,
body:has(.verify-email-header) .login-pf-page .card-pf,
body:has(.verify-email-content) .login-pf-page .card-pf {
    padding: 0 0 0 14px !important;
}



/* Verify Email Header */
body:has(.verify-email-header) #kc-page-title {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

body:has(.verify-email-header) #kc-page-title > div {
    width: 100%;
    display: block !important;
}

body:has(.verify-email-header) #kc-page-title > div:has(.verify-email-header) {
    width: 100%;
    display: block !important;
}

.verify-email-header {
    text-align: center;
    padding: 0px 0;
    color: #333333;
}

.verify-email-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.verify-email-icon img {
    width: 72px;
    height: 72px;
    display: block;
}

.verify-email-subtitle {
    color: #666666;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Verify Email Content */
.verify-email-content {
    padding: 20px 0;
}

body:has(.verify-email-header) .login-pf-page .login-pf-header h1,
body:has(.verify-email-content) .login-pf-page .login-pf-header h1 {
    text-align: left;
    color: #333333;
    font-weight: 700;
    margin-bottom: 10px;
    margin-left: -20px;
}

body:has(.verify-email-header) .login-pf-page .card-pf p {
    color: #000000;
}

/* Verify Email Next Steps */
body:has(.verify-email-header) .next-steps-title,
body:has(.verify-email-content) .next-steps-title {
    color: #000000 !important;
    font-weight: 700;
}

.verify-instructions {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.verify-instructions li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #333333;
    font-size: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E97135;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.verify-email-info,
.verify-email-help {
    margin: 15px 0;
    color: #666666;
    font-size: 14px;
}

.verify-email-actions {
    text-align: center;
    padding: 20px 0;
}

/* Hide Required Fields Label on Verify Email Page */
body:has(.verify-email-header) .subtitle,
body:has(.verify-email-content) .subtitle {
    display: none !important;
}

/* ============================================
   8. RESPONSIVE DESIGN - MEDIA QUERIES
   Organized by breakpoint: Mobile → Tablet → Desktop
   ============================================ */

/* ============================================
   MOBILE DEVICES (< 768px)
   ============================================ */

/* Very Small Screens (iPhone SE, etc.) */
@media (max-width: 375px) and (max-height: 670px) {
    #kc-form-options {
        margin-bottom: 10px;
    }

    /* Ensure logo and content are visible on very small screens */
    .login-pf-page .card-pf {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    #kc-page-title {
        display: none !important;
    }

    /* Make sure body is scrollable */
    body {
        overflow-y: auto !important;
        min-height: 100vh;
    }

    /* Ensure container allows scrolling */
    #kc-container-wrapper {
        position: relative !important;
        overflow-y: auto;
        padding-top: 10px;
    }

    /* Ensure content container is scrollable */
    .login-pf .container {
        overflow-y: auto;
        padding-top: 10px;
    }

    /* Register page specific - ensure scrolling and logo visibility */
    body.register-page,
    body:has(#kc-register-form) {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }

    body.register-page #kc-container-wrapper,
    body:has(#kc-register-form) #kc-container-wrapper {
        position: relative !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding-top: 0 !important;
        min-height: 100vh;
        height: auto !important;
        top: 0 !important;
    }

    body.register-page .login-pf .container,
    body:has(#kc-register-form) .login-pf .container {
        position: relative !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding-top: 0 !important;
        height: auto !important;
        top: 0 !important;
    }

    body.register-page .login-pf-page .card-pf,
    body:has(#kc-register-form) .login-pf-page .card-pf {
        padding-top: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }

    body.register-page #kc-page-title,
    body:has(#kc-register-form) #kc-page-title {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        top: 0 !important;
    }
}

/* Small Mobile Screens */
@media (min-width: 376px) and (max-width: 480px) {
    #kc-form-options {
        margin-bottom: 25vh;
    }
}

/* Medium Mobile Screens */
@media (min-width: 481px) and (max-width: 768px) {
    #kc-form-options {
        margin-bottom: 6vh;
    }
}

/* ============================================
   TABLET DEVICES (768px - 1024px)
   ============================================ */

/* iPad and Small Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    #kc-form-options {
        margin-bottom: 8vh;
    }
}

/* ============================================
   DESKTOP DEVICES (≥ 1025px)
   ============================================ */

/* Standard Desktop */
@media (min-width: 1025px) {
    #kc-form-options {
        margin-bottom: 12vh;
    }
}

/* Large Desktop Screens */
@media (min-width: 1440px) {
    #kc-form-options {
        margin-bottom: 15vh;
    }
}

/* Register page: reduce gap between backToLogin and button */
#kc-register-form #kc-form-options {
    margin-bottom: 10px !important;
}

/* Center the Forgot Password link */
.forgot-password-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.forgot-password-centered a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password-centered a:hover {
    text-decoration: underline;
    color: #000000;
}

#kc-register-form .next-steps-panel {
    background: #ECEFF1;
    padding: 16px;
    margin-top: 0px;
    border-top: 1px solid #e0e0e0;
}

#kc-register-form .next-steps-title {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #333333;
}

#kc-register-form .important-notice {
    margin-top: 16px;
}

#kc-register-form .important-notice .important-title {
    font-weight: 600;
    margin-bottom: 6px;
}

/* Ensure Important Notice text is black */
#kc-register-form .important-notice,
#kc-register-form .important-notice .important-title,
#kc-register-form .important-notice p {
    color: #000000;
}

/* Force Next Steps text to black */
#kc-register-form .next-steps-panel,
#kc-register-form .next-steps-panel *,
#kc-register-form .next-steps-panel a {
    color: #000000 !important;
}

#kc-register-form .next-steps-panel #input-error-privacy,
#kc-register-form .next-steps-panel #input-error-terms {
    color: #a30000 !important;
    margin-left: 15px !important;
}

#kc-welcome.welcome-section {
    padding: 20px 0 10px 15px;
    color: #333333;
}

/* Register page welcome section - separate styling */
#kc-register-form #kc-welcome.welcome-section {
    padding: 10px 0 10px 12px;
}

/* Override paragraph margin for register page */
#kc-register-form p {
    margin: 0 0 5px !important;
}

/* Register page welcome section h1 - override margin */
#kc-register-form #kc-welcome.welcome-section h1 {
    margin: 0 0 3px 0;
    font-weight: 700;
    color: #333333;
}

/* Register page content wrapper - remove top margin */
body:has(#kc-register-form) #kc-content-wrapper {
    margin-top: 0px !important;
}

/* Register page title - remove top margin and padding */
body:has(#kc-register-form) #kc-page-title {
    margin-top: 0px !important;
    padding-top: 0px;
}

.verify-email-content {
    padding: 0px 0;
}

.next-steps-verify {
    margin-bottom: 20px;
}

.verify-instructions {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.verify-instructions li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #333333;
    font-size: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E97135;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.verify-email-info,
.verify-email-help {
    margin: 15px 0;
    color: #666666;
    font-size: 14px;
}

.verify-email-actions {
    text-align: center;
    padding: 20px 0;
}

.resend-link {
    margin-bottom: 15px;
    text-align: left;
}

.resend-link a {
    color: #000000 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    background: none !important;
    border: none !important;
    padding: 0;
    display: inline;
    cursor: pointer;
}

.resend-link a:hover {
    text-decoration: underline;
    color: #000000;
}

.open-mail-button {
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding: 12px 24px;
    background-color: #E97135;
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-sizing: border-box;
}

.open-mail-button:hover {
    background-color: #d86328;
    color: white;
}

#kc-welcome.welcome-section h1 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #333333;
}

#kc-welcome.welcome-section p {
    margin: 0 0 10px 0;
    color: #666666;
}

/* Label styles are now in Shared Form Styles section above */

/* Reset password title */
#kc-reset-password-form .reset-password-title {
    color: #333333;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-left: -6px;
}

/* Reset password instruction text */
#kc-reset-password-form .reset-password-instruction {
    color: #333333;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Input styles are now in Shared Form Styles section above */

/* Reset password form buttons wrapper */
#kc-reset-password-form #kc-form-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 0px;
    max-width: 0px;
    margin-left: 170px;
    gap: 20px;
    margin-top: 300px;
}

/* Responsive margin-top for reset password button container - based on viewport height */
@media (max-height: 667px) {
    /* Small mobile screens (e.g., iPhone SE) */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 100px !important;
    }
}

/* Combined width and height for small mobile screens */
@media (max-width: 767px) and (max-height: 667px) {
    /* Small mobile screens - ensure margin-top works */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 100px !important;
    }
}

@media (min-height: 668px) and (max-height: 800px) {
    /* Medium mobile screens */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 300px;
    }
}

@media (min-height: 801px) and (max-height: 900px) {
    /* Large mobile / Small tablet */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: calc(30vh + 50px);
    }
}

@media (min-height: 901px) and (max-height: 1080px) {
    /* Tablet / Small desktop */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: calc(35vh + 80px);
    }
}

@media (min-height: 1081px) and (max-height: 1440px) {
    /* Medium desktop */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: calc(12vw + 40px);
    }
}

@media (min-height: 1441px) {
    /* Large desktop / Tall screens */
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 300px;
    }
}

/* iPhone SE specific - placed at end for maximum priority */
@media (max-width: 375px) and (max-height: 667px),
(max-width: 375px) and (max-height: 568px),
(max-width: 414px) and (max-height: 667px),
(max-width: 375px) and (max-height: 812px) {
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 100px !important;
    }
}

/* Back to sign in link styling */
#kc-reset-password-form .back-to-signin {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

#kc-reset-password-form .back-to-signin a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

#kc-reset-password-form .back-to-signin a:hover {
    text-decoration: underline;
}

/* Responsive margin-left for reset password button */
@media (max-width: 767px) {
    /* Mobile - centered */
    #kc-reset-password-form #kc-form-buttons {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 400px !important;
    }
}

/* Override margin-top for small height screens on mobile */
@media (max-width: 767px) and (max-height: 667px) {
    #kc-reset-password-form #kc-form-buttons {
        margin-top: 100px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* iPad - 10-12% of viewport width */
    #kc-reset-password-form #kc-form-buttons {
        margin-left: calc(0vw + 0px);
        width: auto !important;
        max-width: 10px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    /* Small Desktop - 11-13% of viewport width */
    #kc-reset-password-form #kc-form-buttons {
        margin-left: 0 !important;
        width: auto !important;
        max-width: 0 !important;
    }
}

@media (min-width: 1367px) and (max-width: 1920px) {
    /* Medium Desktop - 12-14% of viewport width */
    #kc-reset-password-form #kc-form-buttons {
        margin-left: 0;
        width: auto !important;
        max-width: 0 !important;
    }
}

@media (min-width: 1921px) {
    /* Large Desktop - 13-15% of viewport width */
    #kc-reset-password-form #kc-form-buttons {
        margin-left: 0;
        width: auto !important;
        max-width: 0 !important;
    }
}

/* Container width for reset password page - multiple selectors for compatibility */
body.reset-password-page .login-pf .container,
body:has(#kc-reset-password-form) .login-pf .container,
body:has(#kc-reset-password-form) .container,
.login-pf:has(#kc-reset-password-form) .container {
    width: 90% !important;
    max-width: 90% !important;
}

/* Paragraph margin for reset password page */
body.reset-password-page p,
body:has(#kc-reset-password-form) p {
    margin: 0 0 10px 13px !important;
}

/* Remove border for password field completely */
#kc-form-login label:has(.password-input-wrapper),
#kc-form-login label:has(.password-input-wrapper):focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any borders from password input wrapper and input itself */
#kc-form-login label:has(.password-input-wrapper) .password-input-wrapper,
#kc-form-login label:has(.password-input-wrapper) input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove border from form group containing password field */
#kc-form-login .form-group:has(label:has(.password-input-wrapper)),
#kc-form-login .form-group:has(#password) {
    border: none !important;
    outline: none !important;
}

/* Target password field by ID as well */
#kc-form-login label[for="password"] {
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#kc-form-login label>input {
    outline: none;
    border: none;
    background: transparent;
    font-size: larger;
    width: 100%;
    height: 30px;
    padding: 5px 0;
    box-sizing: border-box;
}

/* Label and input styles are now in Shared Form Styles section above */

/* Keep password focus border white for register as well */
#kc-register-form label:has(.password-input-wrapper):focus-within {
    border: 1px solid #ffffff;
}

/* Next Steps checkboxes formatting */
#kc-register-form .next-steps-panel .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none !important;
    background: transparent !important;
    padding: 0px 0px 0px 35px !important;
    min-height: auto !important;
    color: #000000;
}

#kc-register-form .next-steps-panel .checkbox label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E97135;
}

.login-pf-page .login-pf-header {
    margin-bottom: 5px !important;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    display: -ms-flexbox;
    font-size: 20px !important;
}

/* Password toggle styling */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.password-toggle:hover svg path {
    fill: #333333;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* SVG styles are now in Shared Form Styles section above */

/* Input styles (height, border, placeholder) are page-specific and remain here */
#kc-register-form input {
    height: 44px;
    background: #ffffff;
    border: 1px solid #757575;
    border-radius: 0px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    outline: none;
}

#kc-register-form input:focus-within {
    border: 1px solid #000;
}

#kc-register-form input::placeholder {
    color: #757575;
    font-weight: 200;
    font-size: 14px;
}

/* Reset password form input - no border on focus */
#kc-reset-password-form input {
    height: 44px;
    background: #ffffff;
    border: 1px solid #757575;
    border-radius: 0px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    outline: none;
}

#kc-reset-password-form input:focus,
#kc-reset-password-form input:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#kc-reset-password-form input::placeholder {
    color: #757575;
    font-weight: 200;
    font-size: 14px;
}

/* Submit buttons are now in Shared Form Styles section above */

  #spacer {
    padding-top: 1em;
  }
textarea.pf-c-form-control {
	height: auto;
}

.pf-c-alert__title {
    font-size: var(--pf-global--FontSize--xs);
}

p.instruction {
    margin: 5px 0;
}

.pf-c-button.pf-m-control {
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}

h1#kc-page-title {
    margin-top: 10px;
    font-weight: 700;
    color: #000000;
    font-size: 23px;
}

#kc-locale ul {
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100px;
    margin: 4px 0 0;
    padding: 0;
    z-index: 10000;
}

#kc-locale-dropdown{
    display: inline-block;
    position: relative;
}

#kc-locale-dropdown:hover ul,
#kc-locale-dropdown:focus-within ul,
#kc-locale-dropdown.kc-locale-open ul {
    display:block;
}

body:has(.password-updated-screen) #kc-locale-dropdown.kc-locale-force-closed ul {
    display: none !important;
}

#kc-current-locale-link,
#kc-locale-dropdown a {
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: var(--pf-global--FontSize--sm);
}

#kc-current-locale-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    padding: 0;
}

#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: var(--pf-global--spacer--xs)
}

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: #0099d3;
}

#kc-logo {
    width: 100%;
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

/* Make logo smaller on register page - target the logo image */
/* When register form exists anywhere on the page */
body:has(#kc-register-form) #kc-page-title img {
    width: 75px !important;
    height: auto !important;
}

/* Direct target for register page logo */
#kc-page-title:has(+ * #kc-register-form) img,
#kc-page-title img[src*="logo"] {
    width: 100px;
}

/* Override for register page specifically */
#kc-register-form {
    --logo-size: 75px;
}

body:has(#kc-register-form) #kc-page-title div img {
    width: 75px !important;
    height: auto !important;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: #ededed;
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    width: 100%;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

#kc-username {
    text-align: center;
    margin-bottom:-10px;
}

#kc-login {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    height: 50px;
    width: 350px;
    background: #E97135 !important;
    border-radius: 10px;
    font-size: large;
    font-weight: 700;
    color: #000000;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}

#kc-form-webauthn .select-auth-box-parent {
    pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
    color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
    color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
    flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
    margin-top: 10px;
    font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
    margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
    margin: -1px 0;
}

#kc-content-wrapper {
    margin-top: 20px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

#kc-info span {
    background: transparent;
    padding:0 10px;
}

#kc-info h3 {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #000;
    line-height: 0.1em;
    margin: 0px 0 30px;
 }

 #kc-info h3 span {
    background: #F6F6F6;
     padding:0 10px;
 }

#kc-info-wrapper {
    font-size: 13px;
    background-color: transparent;
    text-align: -webkit-center;
}

/* Info Page - Override paragraph margins */
body.info-page p,
body:has(#kc-info-message) p,
#kc-info-message p {
    margin: 0px !important;
    margin-top: 0px !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
    margin-left: 20px !important;
}

/* Register page - Back to Login link styling */
/* Duplicate removed - see Register Page section above */

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: auto;
    color: #72767b;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    display: flex;
    justify-content: center;
}

/* TOTP */

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: #909090;
}

.required {
    color: var(--pf-global--danger-color--200) !important;
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:150px;
    max-height:150px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 16px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */
.kc-social-links {
    margin-top: 20px;
}

.kc-social-provider-logo {
    font-size: 23px;
    width: 30px;
    height: 25px;
    float: left;
}

.kc-social-gray {
    color: var(--pf-global--Color--200);
}

.kc-social-item {
    margin-bottom: var(--pf-global--spacer--sm);
    font-size: 15px;
    text-align: center;
}

.kc-social-provider-name {
    position: relative;
    top: 3px;
}

.kc-social-icon-text {
    left: -15px;
}

.kc-social-grid {
    display:grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    grid-column-end: span 6;
    --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
    left: -10px;
}

.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-social-section {
    text-align: center;
}

.kc-social-section hr{
    margin-bottom: 10px
}

.kc-login-tooltip .kc-tooltip-text{
    top:-3px;
    left:160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width:130px;
    text-align: center;
    border-radius: 2px;
    box-shadow:0 1px 8px rgba(0,0,0,0.6);
    padding: 5px;

    position: absolute;
    opacity:0;
    transition:opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity:0.7;
}

/* Arrow for tooltip */
.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 black transparent transparent;
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* Ensure registration button and sign in button have consistent width */
#kc-form-buttons input[type="submit"],
#kc-form-buttons #kc-registration-container {
    box-sizing: border-box;
    width: 350px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Registration button container */
#kc-registration-container {
    display: flex;
    justify-content: center;
}

#kc-registration {
    width: 350px !important;
    display: flex;
    justify-content: center;
}

/* Make Sign In button consistent width */
#kc-login {
    width: 350px !important;
}

/* Individual element positioning - allows moving elements without affecting card functionality */
#kc-form-login {
    position: relative;
}

/* Individual positioning for form elements */
#kc-form-login .form-group {
    position: relative;
    /* Add custom positioning here without affecting the card */
}

/* Example: Move specific elements individually */
#kc-form-login .form-group:first-child {
    /* Custom positioning for first form group (email) */
    /* margin-top: 20px; */
    /* transform: translateX(10px); */
}

#kc-form-login .form-group:nth-child(2) {
    /* Custom positioning for second form group (password) */
    /* margin-top: 30px; */
    /* transform: translateX(-10px); */
}

/* Individual button positioning */
#kc-form-buttons {
    position: relative;
    /* Add custom positioning for buttons without affecting form submission */
}

/* Individual positioning for registration button */
#kc-registration-container {
    position: relative;
    /* Add custom positioning for registration button */
}

/* Individual positioning for forgot password */
#kc-forgot-password-container {
    position: relative;
    /* Add custom positioning for forgot password link */
}

/* Extended styling for input labels inside the boxes */
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #6C757D;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    width: 100%;
}

.login-pf-page {
    padding-top: 0em;
    width: 100% !important;
}

.login-pf-page .card-pf {
    padding: 0 0 0 0 !important;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
}

.container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.select-auth-box-arrow{
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon{
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent{
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.select-auth-box-parent:hover{
    background-color: #f7f8f8;
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--pf-global--primary-color--100);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

.select-auth-box-paragraph {
    text-align: center;
    font-size: var(--pf-global--FontSize--md);
    margin-bottom: 5px;
}

.card-pf {
    margin: 0 auto;
    /* box-shadow: var(--pf-global--BoxShadow--lg); */
    /* padding: 0 20px; */
    max-width: 100%;
    /* border-top: 4px solid;
    border-color: var(--pf-global--primary-color--100); */
    background: transparent;
    border: none;
    box-shadow: none;
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
    margin: 0;
    width: 100%;
}

.login-pf-page .login-pf-signup a {
    margin-left: 0px;
    width: 350px !important;
    height: 50px;
    background: #000000;
    border-radius: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #ffffff;
    font-size: large;
    font-weight: 400;
    border: 1px solid #000000;
    box-sizing: border-box;
}

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
    background: #E97135 !important;
    border-color: #E97135 !important;
}

.pf-m-primary {
    background: #E97135 !important;
    border-color: #E97135 !important;
}

/* Register button styling */
.btn-default, .pf-m-secondary {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

/* Fix checkbox alignment for login page only */
#kc-form-login .checkbox input[type=checkbox] {
    margin-top: 3px !important;
    accent-color: #E97135;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type,
#kc-update-email-form div.form-group:last-of-type{
    margin-bottom: 0px;
}

.no-bottom-margin {
    margin-bottom: 0;
}

#kc-back {
    margin-top: 5px;
}

/* Recovery codes */
.kc-recovery-codes-warning {
    margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-c-alert__description p {
    font-size: 0.875rem;
}
.kc-recovery-codes-list {
    list-style: none;
    columns: 2;
    margin: 16px 0;
    padding: 16px 16px 8px 16px;
    border: 1px solid #D2D2D2;
}
.kc-recovery-codes-list li {
    margin-bottom: 8px;
    font-size: 11px;
}
.kc-recovery-codes-list li span {
    color: #6A6E73;
    width: 16px;
    text-align: right;
    display: inline-block;
    margin-right: 1px;
}

.kc-recovery-codes-actions {
    margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
    padding-left: 0;
}
.kc-recovery-codes-actions button i {
    margin-right: 8px;
}

.kc-recovery-codes-confirmation {
    align-items: baseline;
    margin-bottom: 16px;
}
/* End Recovery codes */


/* ============================================
   PAGE-SPECIFIC MEDIA QUERIES
   ============================================ */

/* iPad - Login/Register Page Card Padding */
@media (min-width: 768px) and (max-width: 1024px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    /* Container width for reset password page on iPad */
    body.reset-password-page .login-pf .container,
    body:has(#kc-reset-password-form) .login-pf .container {
        width: 90% !important;
        max-width: 90% !important;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }

    .login-pf-page .card-pf {
        padding: 50% 40px 30px 40px !important;
    }

    .card-pf {
        max-width: 45%;
    }
}

/* Desktop - Login/Register Page Card Padding */
@media (min-width: 1025px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    /* Container width for reset password page on Desktop */
    body.reset-password-page .login-pf .container,
    body:has(#kc-reset-password-form) .login-pf .container {
        width: 90% !important;
        max-width: 90% !important;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }

    .login-pf-page .card-pf {
        padding: 20% 40px 30px 0px !important;
    }

    .card-pf {
        max-width: 30%;
    }
}

@media (min-width: 1440px) {
    .login-pf-page .card-pf {
        padding: 10% 50px 40px 100px !important;
    }

    body:has(#kc-info-message) .login-pf-page .card-pf,
    .login-pf-page:has(#kc-info-message) .card-pf {
        padding: 10% 200px 40px 100px !important;
    }
}

@media (min-width: 2309px) {
    body:has(#kc-info-message) .login-pf-page .card-pf,
    .login-pf-page:has(#kc-info-message) .card-pf {
        padding: 10% 300px 40px 100px !important;
    }
}


@media (max-width: 767px) {
    /* Register page scrolling fixes for small screens */
    body.register-page,
    body:has(#kc-register-form),
    body.register-page #kc-register-form,
    #kc-register-form {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 100vh;
        height: auto !important;
    }

    body.register-page html,
    body:has(#kc-register-form) html {
        overflow-y: auto !important;
        height: auto !important;
    }

    body.register-page #kc-container-wrapper,
    body:has(#kc-register-form) #kc-container-wrapper {
        position: relative !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        min-height: 100vh;
        height: auto !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
    }

    body.register-page .login-pf,
    body:has(#kc-register-form) .login-pf {
        overflow-y: auto !important;
        min-height: 100vh;
        height: auto !important;
    }

    body.register-page .login-pf .container,
    body:has(#kc-register-form) .login-pf .container {
        position: relative !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        min-height: 100vh;
        height: auto !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
    }

    body.register-page .login-pf-page,
    body:has(#kc-register-form) .login-pf-page {
        overflow-y: visible !important;
        min-height: auto !important;
    }

    body.register-page .login-pf-page .card-pf,
    body:has(#kc-register-form) .login-pf-page .card-pf {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative !important;
    }

    body.register-page #kc-page-title,
    body:has(#kc-register-form) #kc-page-title {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    body.register-page #kc-page-title img,
    body:has(#kc-register-form) #kc-page-title img {
        max-width: 100% !important;
        height: auto !important;
    }

    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        border-top: 0;
        box-shadow: 0 0;
        background: transparent;
    }

    /* Ensure logo is visible on small screens */
    #kc-page-title {
        margin-top: 10px !important;
        padding-top: 10px;
    }

    #kc-page-title img {
        display: block;
        margin: 0 auto;
    }

    /* Add top padding to form card to prevent content cutoff */
    .kc-form-card-class {
        padding-top: 20px !important;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }
    .login-pf body {
        background: transparent;
        /* background-image: url("../img/mob_above.svg"), url("../img/mob_below.svg"); */
        background-position: left top, right bottom;
        background-repeat: no-repeat, no-repeat;
        background-size: 55%, 30%;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }
}

.form-group {
    margin-bottom: 2px !important;
}

#kc-register-form .next-steps-title{
    font-size: 16px !important;
}

/* Height-based Media Queries */
@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

/* ============================================
   OVERRIDES
   ============================================ */

:root {
    --login-shot-bg: #f3f3f3;
    --login-shot-card-bg: #ffffff;
    --login-shot-border: #d7d7d7;
    --login-shot-title: #101010;
    --login-shot-subtitle: #222222;
    --login-shot-label: #9a9a9a;
    --login-shot-link: #5d5d5d;
    --login-shot-primary: #ff9800;
    --login-shot-primary-hover: #f08e00;
}

body:has(#kc-form-login) {
    background: var(--login-shot-bg) !important;
}

/* Neutralize legacy desktop/tablet right-offset on login only */
body.login-pf:has(#kc-form-login) .container,
html.login-pf body:has(#kc-form-login).container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:has(#kc-form-login) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

body:has(#kc-form-login) .card-pf {
    width: 100%;
    max-width: 460px;
    background: var(--login-shot-card-bg) !important;
    border-radius: 20px;
    padding: 28px 24px 36px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body:has(#kc-form-login) #kc-page-title {
    display: none !important;
}

body:has(#kc-form-login) #kc-welcome.welcome-section {
    margin: 0 0 20px;
    padding: 0;
}

body:has(#kc-form-login) .welcome-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

body:has(#kc-form-login) .welcome-icon img {
    width: 94px;
    height: 94px;
}

body:has(#kc-form-login) #kc-welcome.welcome-section h1 {
    color: var(--login-shot-title);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
}

body:has(#kc-form-login) #kc-welcome.welcome-section p {
    color: var(--login-shot-subtitle);
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 20px;
}

body:has(#kc-form-login) #kc-form-login label {
    border: 1px solid var(--login-shot-border);
    border-radius: 0;
    background: #fff;
    padding: 8px 14px 10px !important;
    min-height: 72px;
}

body:has(#kc-form-login) #kc-form-login .input-label {
    color: var(--login-shot-label);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 8px;
}

body:has(#kc-form-login) #kc-form-login label > input {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
    height: 30px;
    padding: 0;
}

body:has(#kc-form-login) #kc-form-login label > input::placeholder {
    color: #b3b3b3;
    font-weight: 400;
    opacity: 1;
}

body:has(#kc-form-login) .password-toggle {
    right: 14px;
    width: 24px;
    height: 24px;
}

body:has(#kc-form-login) .password-toggle svg {
    width: 24px;
    height: 24px;
}

body:has(#kc-form-login) .password-toggle svg path {
    fill: #9a9a9a;
}

body:has(#kc-form-login) #kc-form-options {
    margin-bottom: 8px;
}

body:has(#kc-form-login) #kc-form-options .checkbox {
    display: flex;
    align-items: center;
}

body:has(#kc-form-login) #kc-form-options .checkbox input[type="checkbox"] {
    margin-top: 0 !important;
}

body:has(#kc-form-login) .forgot-password-centered {
    margin: 8px 0 14px;
}

body:has(#kc-form-login) .forgot-password-centered a {
    color: var(--login-shot-link);
    font-size: 18px;
    font-weight: 700;
}

body:has(#kc-form-login) .login-pf-signup {
    margin-top: 0;
}

body:has(#kc-form-login) .login-pf-signup a {
    width: auto !important;
    height: auto;
    border: 0;
    background: transparent;
    color: var(--login-shot-link);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    padding: 0;
}

body:has(#kc-form-login) #kc-login {
    width: 100% !important;
    max-width: 100%;
    height: 56px;
    border-radius: 999px;
    background: var(--login-shot-primary) !important;
    color: #151515 !important;
    font-size: 24px;
    font-weight: 700;
    border: none;
    margin-top: 16px;
}

body:has(#kc-form-login) #kc-login:hover,
body:has(#kc-form-login) #kc-login:focus {
    background: var(--login-shot-primary-hover) !important;
}

@media (max-width: 767px) {
    body:has(#kc-form-login) .card-pf {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        padding: 14px 0 28px !important;
        box-shadow: none;
    }

    body:has(#kc-form-login) #kc-content-wrapper {
        padding: 0;
    }

    body:has(#kc-form-login) #kc-welcome.welcome-section h1 {
        font-size: 56px;
        margin: 0 0 12px;
    }

    body:has(#kc-form-login) #kc-welcome.welcome-section p {
        font-size: 18px;
        margin: 0 0 18px;
    }

    body:has(#kc-form-login) .forgot-password-centered a {
        font-size: 18px;
    }

    body:has(#kc-form-login) .login-pf-signup a {
        font-size: 18px;
    }

    body:has(#kc-form-login) #kc-login {
        font-size: 22px;
        height: 56px;
    }
}

body:has(#kc-form-login) {
    background: #f5f5f5 !important;
}

body:has(#kc-form-login) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(#kc-form-login) .card-pf {
    width: 100%;
    max-width: 100%;
    min-height: 812px;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(#kc-form-login) #kc-page-title {
    display: none !important;
}

body:has(#kc-form-login) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(#kc-form-login) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(#kc-form-login) #kc-content-wrapper,
body:has(#kc-form-login) #kc-form,
body:has(#kc-form-login) #kc-form-wrapper {
    margin-top: 0 !important;
    padding: 0;
    height: 100%;
}

body:has(#kc-form-login) #kc-form-login {
    min-height: 740px;
    display: flex;
    flex-direction: column;
}

body:has(#kc-form-login) #kc-form-options {
    display: none;
}

body:has(#kc-form-login) #kc-welcome.welcome-section {
    margin: 0;
    padding: 8px 20px 0;
}

body:has(#kc-form-login) .welcome-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px;
}

body:has(#kc-form-login) .welcome-icon img {
    width: 72px;
    height: 72px;
}

body:has(#kc-form-login) #kc-welcome.welcome-section h1 {
    margin: 0 0 10px;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(#kc-form-login) #kc-welcome.welcome-section p {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(#kc-form-login) #kc-form-login .form-group {
    margin: 0 !important;
}

body:has(#kc-form-login) #kc-form-login > .form-group:nth-of-type(1),
body:has(#kc-form-login) #kc-form-login > .form-group:nth-of-type(2) {
    border-bottom: 1px solid #cccccc;
}

body:has(#kc-form-login) #kc-form-login label {
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    min-height: 76px;
    padding: 16px 20px 12px !important;
}

body:has(#kc-form-login) #kc-form-login .input-label {
    margin: 0 0 8px;
    color: #818181;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

body:has(#kc-form-login) #kc-form-login label > input {
    color: #161314;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    height: 24px;
    padding: 0;
}

body:has(#kc-form-login) #kc-form-login .password-input-wrapper input {
    color: #161314;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    height: 24px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    min-width: 0;
}

body:has(#kc-form-login) #kc-form-login label > input::placeholder {
    color: #161314;
    opacity: 1;
    font-weight: 400;
}

body:has(#kc-form-login) #kc-form-login .password-input-wrapper input::placeholder {
    color: #161314;
    opacity: 1;
    font-weight: 400;
}

body:has(#kc-form-login) #kc-form-login .password-input-wrapper {
    display: flex;
    align-items: center;
}

body:has(#kc-form-login) #kc-form-login .password-toggle {
    right: 0;
    width: 24px;
    height: 24px;
}

body:has(#kc-form-login) #kc-form-login .password-toggle svg {
    width: 24px;
    height: 24px;
}

body:has(#kc-form-login) #kc-form-login .password-toggle svg path {
    fill: #818181 !important;
}

body:has(#kc-form-login) #kc-form-login .login-bottom-actions {
    margin-top: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body:has(#kc-form-login) #kc-forgot-password-container,
body:has(#kc-form-login) #kc-form-buttons {
    margin: 0 !important;
}

body:has(#kc-form-login) .forgot-password-centered,
body:has(#kc-form-login) .login-pf-page .login-pf-signup {
    margin: 0;
    text-align: center;
}

body:has(#kc-form-login) .forgot-password-centered a,
body:has(#kc-form-login) .login-pf-page .login-pf-signup a {
    color: #5d5d5d !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

body:has(#kc-form-login) .forgot-password-centered a:hover,
body:has(#kc-form-login) .login-pf-page .login-pf-signup a:hover {
    text-decoration: none !important;
}

body:has(#kc-form-login) #kc-registration-container,
body:has(#kc-form-login) #kc-registration,
body:has(#kc-form-login) #kc-form-buttons {
    width: 100% !important;
    max-width: 100% !important;
}

body:has(#kc-form-login) #kc-login {
    width: 100% !important;
    max-width: 100%;
    height: 48px;
    border-radius: 9999px;
    background: #ff8200 !important;
    border: none !important;
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    margin-top: 0;
    padding: 0;
}

body:has(#kc-form-login) #kc-login:hover,
body:has(#kc-form-login) #kc-login:focus {
    background: #ff8200 !important;
}

body:has(#kc-form-login) #input-error {
    margin: 8px 20px 0 !important;
}

@media (max-width: 767px) {
    body:has(#kc-form-login) .login-pf-page {
        padding: 0;
    }

    body:has(#kc-form-login) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }

    body:has(#kc-form-login) #kc-form-login {
        min-height: calc(100vh - 68px);
    }
}

body:has(#kc-register-form) {
    background: #f5f5f5 !important;
}

body:has(#kc-register-form) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(#kc-register-form) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(#kc-register-form) #kc-page-title {
    display: none !important;
}

body:has(#kc-register-form) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(#kc-register-form) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(#kc-register-form) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(#kc-register-form) #kc-register-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body:has(#kc-register-form) #kc-welcome.welcome-section {
    margin: 0;
    padding: 8px 20px 0;
}

body:has(#kc-register-form) #kc-welcome.welcome-section .welcome-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px;
}

body:has(#kc-register-form) #kc-welcome.welcome-section .welcome-icon img {
    width: 72px;
    height: 72px;
}

body:has(#kc-register-form) #kc-welcome.welcome-section h1 {
    margin: 0 0 10px;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(#kc-register-form) #kc-welcome.welcome-section p {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(#kc-register-form) #kc-register-form .form-group {
    margin: 0 !important;
}

body:has(#kc-register-form) #kc-register-form label[for="email"],
body:has(#kc-register-form) #kc-register-form label[for="username"],
body:has(#kc-register-form) #kc-register-form label[for="password"],
body:has(#kc-register-form) #kc-register-form label[for="password-confirm"] {
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    min-height: 76px;
    padding: 16px 20px 12px !important;
    border-bottom: 1px solid #cccccc !important;
}

body:has(#kc-register-form) #kc-register-form label[for="email"] .input-label,
body:has(#kc-register-form) #kc-register-form label[for="username"] .input-label,
body:has(#kc-register-form) #kc-register-form label[for="password"] .input-label,
body:has(#kc-register-form) #kc-register-form label[for="password-confirm"] .input-label {
    margin: 0 0 8px;
    color: #818181;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

body:has(#kc-register-form) #kc-register-form label[for="email"] > input,
body:has(#kc-register-form) #kc-register-form label[for="username"] > input {
    color: #161314;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    height: 24px;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

body:has(#kc-register-form) #kc-register-form label[for="password"] > input,
body:has(#kc-register-form) #kc-register-form label[for="password-confirm"] > input {
    color: #787878;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    height: 24px;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

body:has(#kc-register-form) #kc-register-form label[for="email"] > input::placeholder,
body:has(#kc-register-form) #kc-register-form label[for="username"] > input::placeholder {
    color: #161314;
    opacity: 1;
}

body:has(#kc-register-form) #kc-register-form label[for="password"] > input::placeholder,
body:has(#kc-register-form) #kc-register-form label[for="password-confirm"] > input::placeholder {
    color: #787878;
    opacity: 1;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel {
    background: transparent;
    padding: 24px 20px 0;
    margin-top: 0;
    border-top: none;
}

body:has(#kc-register-form) #kc-register-form .next-steps-title {
    margin: 0 0 10px 0;
    color: #161314 !important;
    font-size: 18px !important;
    line-height: 24px !important;
    letter-spacing: 0.36px;
    font-weight: 700;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel > p {
    margin: 0 0 10px !important;
    color: #161314 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 400;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .form-group {
    margin: 0 !important;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none !important;
    background: transparent !important;
    padding: 16px 0 !important;
    min-height: auto !important;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #cccccc;
    border-radius: 3px;
    background: #ffffff;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox input[type="checkbox"]:checked {
    border-color: #ff8200;
    background: #ff8200;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 5px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox span {
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox span a {
    color: #005f87 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox span a:hover,
body:has(#kc-register-form) #kc-register-form .next-steps-panel .checkbox span a:focus-visible {
    color: #004462 !important;
}

body:has(#kc-register-form) #kc-register-form .important-notice {
    margin-top: 14px;
    color: #302f2f !important;
}

body:has(#kc-register-form) #kc-register-form .important-notice .important-title {
    margin-bottom: 4px;
    color: #302f2f !important;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

body:has(#kc-register-form) #kc-register-form .important-notice p {
    margin: 0 0 12px !important;
    color: #302f2f !important;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

body:has(#kc-register-form) #kc-register-form #kc-form-options {
    display: none !important;
}

body:has(#kc-register-form) #kc-register-form #kc-form-buttons {
    margin-top: 10px;
    padding: 0 20px 20px;
    width: 100%;
}

body:has(#kc-register-form) #kc-register-form #kc-form-buttons input[type="submit"] {
    width: 100% !important;
    max-width: 100%;
    height: 48px;
    border-radius: 9999px;
    background: #ff8200 !important;
    border: none !important;
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    margin: 0;
}

body:has(#kc-register-form) #kc-register-form #input-error-email,
body:has(#kc-register-form) #kc-register-form #input-error-password,
body:has(#kc-register-form) #kc-register-form #input-error-password-confirm {
    margin: 8px 20px 0 !important;
}

body:has(#kc-register-form) #kc-register-form #input-error-privacy,
body:has(#kc-register-form) #kc-register-form #input-error-terms {
    margin: 0 0 6px 36px !important;
}

@media (max-width: 767px) {
    body:has(#kc-register-form) .login-pf-page {
        padding: 0;
    }

    body:has(#kc-register-form) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.verify-email-screen) {
    background: #f5f5f5 !important;
}

body:has(.verify-email-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.verify-email-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.verify-email-screen) #kc-page-title {
    display: none !important;
}

body:has(.verify-email-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.verify-email-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.verify-email-screen) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.verify-email-screen) .verify-email-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 0;
}

body:has(.verify-email-screen) .verify-email-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 20px;
}

body:has(.verify-email-screen) .verify-email-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

body:has(.verify-email-screen) .verify-email-icon img {
    width: 72px;
    height: 72px;
}

body:has(.verify-email-screen) .verify-email-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.verify-email-screen) .verify-email-subtitle {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.verify-email-screen) .verify-email-next-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.verify-email-screen) .verify-next-steps-title {
    margin: 0;
    color: #161314;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.36px;
    font-weight: 700;
}

body:has(.verify-email-screen) .verify-next-steps-copy {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.verify-email-screen) .verify-email-steps {
    display: flex;
    flex-direction: column;
    padding: 0;
}

body:has(.verify-email-screen) .verify-email-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

body:has(.verify-email-screen) .verify-step-number {
    display: none;
}

body:has(.verify-email-screen) .verify-step-bullet {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body:has(.verify-email-screen) .verify-step-bullet img {
    width: 30px;
    height: 30px;
    display: block;
}

body:has(.verify-email-screen) .verify-step-text {
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.verify-email-screen) #kc-info {
    margin-top: 0;
}

body:has(.verify-email-screen) #kc-info-wrapper {
    padding: 20px;
    background: transparent;
}

body:has(.verify-email-screen) .verify-email-actions {
    width: 100%;
}

body:has(.verify-email-screen) .verify-email-resend-button {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    background: transparent;
    color: #5d5d5d !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
}

body:has(.verify-email-screen) .verify-email-resend-button:hover,
body:has(.verify-email-screen) .verify-email-resend-button:focus {
    color: #5d5d5d !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    body:has(.verify-email-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.verify-email-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.ready-activate-screen) {
    background: #f5f5f5 !important;
}

body:has(.ready-activate-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.ready-activate-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.ready-activate-screen) #kc-page-title {
    display: none !important;
}

body:has(.ready-activate-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.ready-activate-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.ready-activate-screen) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.ready-activate-screen) #kc-info-message {
    margin: 0;
}

body:has(.ready-activate-screen) .ready-activate-screen {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 8px 0 0;
}

body:has(.ready-activate-screen) .ready-activate-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.ready-activate-screen) .ready-activate-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

body:has(.ready-activate-screen) .ready-activate-icon img {
    width: 72px;
    height: 72px;
}

body:has(.ready-activate-screen) .ready-activate-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.ready-activate-screen) .ready-activate-subtitle {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.ready-activate-screen) .ready-activate-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.ready-activate-screen) .ready-activate-step-title {
    margin: 0;
    color: #161314;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.36px;
    font-weight: 700;
}

body:has(.ready-activate-screen) .ready-activate-copy {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.ready-activate-screen) .ready-activate-actions {
    width: 100%;
    padding: 0 20px 20px;
}

body:has(.ready-activate-screen) .ready-activate-button {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none !important;
}

body:has(.ready-activate-screen) .ready-activate-button:hover,
body:has(.ready-activate-screen) .ready-activate-button:focus {
    text-decoration: none !important;
    color: #000000 !important;
}

@media (max-width: 767px) {
    body:has(.ready-activate-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.ready-activate-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.confirm-email-address-screen) {
    background: #f5f5f5 !important;
}

body:has(.confirm-email-address-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.confirm-email-address-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.confirm-email-address-screen) #kc-page-title {
    display: none !important;
}

body:has(.confirm-email-address-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.confirm-email-address-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.confirm-email-address-screen) #kc-content-wrapper,
body:has(.confirm-email-address-screen) #kc-info-message {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.confirm-email-address-screen) .confirm-email-address-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0 0;
}

body:has(.confirm-email-address-screen) .confirm-email-address-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    text-align: center;
}

body:has(.confirm-email-address-screen) .confirm-email-address-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.confirm-email-address-screen) .confirm-email-address-summary {
    margin: 0 !important;
    color: #161314;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#kc-info-message .confirm-email-address-summary {
    margin: 0 !important;
}

body:has(.confirm-email-address-screen) .confirm-email-address-actions {
    width: 100%;
    padding: 24px 20px 20px;
    box-sizing: border-box;
}

body:has(.confirm-email-address-screen) .confirm-email-address-button {
    width: 100%;
    min-height: 48px;
    border-radius: 9999px;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

body:has(.confirm-email-address-screen) .confirm-email-address-button:hover,
body:has(.confirm-email-address-screen) .confirm-email-address-button:focus {
    text-decoration: none !important;
    color: #000000 !important;
}

@media (min-width: 768px) {
    body:has(.confirm-email-address-screen) .confirm-email-address-actions {
        display: flex;
        justify-content: center;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-button {
        max-width: 350px;
    }
}

@media (max-width: 767px) {
    body:has(.confirm-email-address-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.confirm-email-address-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.account-activated-screen) {
    background: #f5f5f5 !important;
}

body:has(.account-activated-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.account-activated-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.account-activated-screen) #kc-page-title {
    display: none !important;
}

body:has(.account-activated-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.account-activated-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.account-activated-screen) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.account-activated-screen) #kc-info-message {
    margin: 0;
}

body:has(.account-activated-screen) .account-activated-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 0;
}

body:has(.account-activated-screen) .account-activated-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.account-activated-screen) .account-activated-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

body:has(.account-activated-screen) .account-activated-icon img {
    width: 72px;
    height: 72px;
}

body:has(.account-activated-screen) .account-activated-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.account-activated-screen) .account-activated-subtitle {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.account-activated-screen) .account-activated-profile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.account-activated-screen) .account-activated-section-title {
    margin: 0;
    color: #161314;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.36px;
    font-weight: 700;
}

body:has(.account-activated-screen) .account-activated-copy {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.account-activated-screen) .account-activated-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.account-activated-screen) .account-activated-benefits-title {
    margin: 0;
    color: #302f2f;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
}

body:has(.account-activated-screen) .account-activated-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body:has(.account-activated-screen) .account-activated-benefits-list li {
    color: #302f2f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

body:has(.account-activated-screen) .account-activated-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

body:has(.account-activated-screen) .account-activated-secondary,
body:has(.account-activated-screen) .account-activated-primary {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none !important;
    color: #000000 !important;
}

body:has(.account-activated-screen) .account-activated-secondary {
    border: 2px solid #cccccc;
    background: #ffffff;
}

body:has(.account-activated-screen) .account-activated-primary {
    border: none;
    background: #ff8200;
}

body:has(.account-activated-screen) .account-activated-secondary:hover,
body:has(.account-activated-screen) .account-activated-primary:hover,
body:has(.account-activated-screen) .account-activated-secondary:focus,
body:has(.account-activated-screen) .account-activated-primary:focus {
    text-decoration: none !important;
    color: #000000 !important;
}

@media (max-width: 767px) {
    body:has(.account-activated-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.account-activated-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(#kc-reset-password-form) {
    background: #f5f5f5 !important;
}

body:has(#kc-reset-password-form) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(#kc-reset-password-form) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(#kc-reset-password-form) #kc-page-title {
    display: none !important;
}

body:has(#kc-reset-password-form) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(#kc-reset-password-form) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(#kc-reset-password-form) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(#kc-reset-password-form) #kc-form {
    margin: 0;
}

body:has(#kc-reset-password-form) #kc-form-wrapper {
    padding: 0;
}

body:has(#kc-reset-password-form) #kc-reset-password-form {
    width: 100%;
    margin: 0;
}

body:has(#kc-reset-password-form) .reset-password-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 20px;
}

body:has(#kc-reset-password-form) .reset-password-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(#kc-reset-password-form) .reset-password-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(#kc-reset-password-form) .reset-password-icon img {
    width: 72px;
    height: 72px;
}

body:has(#kc-reset-password-form) .reset-password-title {
    margin: 0 !important;
    color: #161314;
    font-size: 24px !important;
    line-height: 30px !important;
    letter-spacing: 0.48px;
    font-weight: 700 !important;
}

body:has(#kc-reset-password-form) .reset-password-instruction {
    margin: 0 !important;
    color: #161314;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
}

body:has(#kc-reset-password-form) .reset-password-field-group {
    margin: 0 !important;
    padding: 0 20px;
}

body:has(#kc-reset-password-form) .reset-password-field-group label {
    border: 1px solid #757575 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    min-height: 44px !important;
}

body:has(#kc-reset-password-form) .reset-password-field-group label:focus-within {
    border: 1px solid #161314 !important;
}

body:has(#kc-reset-password-form) .reset-password-field-group .input-label {
    color: #757575 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

body:has(#kc-reset-password-form) .reset-password-field-group input#username {
    font-size: 16px !important;
    line-height: 20px !important;
    color: #161314 !important;
    font-weight: 400 !important;
}

body:has(#kc-reset-password-form) .reset-password-field-group input#username::placeholder {
    color: #757575 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body:has(#kc-reset-password-form) .reset-password-actions-group {
    margin: 0 !important;
    padding: 0 20px;
}

body:has(#kc-reset-password-form) #kc-form-buttons {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

body:has(#kc-reset-password-form) .back-to-signin {
    margin: 0;
    text-align: center;
}

body:has(#kc-reset-password-form) .back-to-signin a {
    color: #302f2f !important;
    text-decoration: none !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
}

body:has(#kc-reset-password-form) .back-to-signin a:hover,
body:has(#kc-reset-password-form) .back-to-signin a:focus {
    text-decoration: underline !important;
}

body:has(#kc-reset-password-form) #kc-form-buttons input[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    border-radius: 9999px !important;
    border: none !important;
    background: #ff8200 !important;
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    body:has(#kc-reset-password-form) .login-pf-page {
        padding: 0;
    }

    body:has(#kc-reset-password-form) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.reset-link-sent-screen) {
    background: #f5f5f5 !important;
}

body:has(.reset-link-sent-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.reset-link-sent-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.reset-link-sent-screen) #kc-page-title {
    display: none !important;
}

body:has(.reset-link-sent-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.reset-link-sent-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.reset-link-sent-screen) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.reset-link-sent-screen) #kc-form,
body:has(.reset-link-sent-screen) #kc-form-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

body:has(.reset-link-sent-screen) #kc-info-message {
    margin: 0;
    padding: 0;
}

body:has(.reset-link-sent-screen) .reset-link-sent-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0 24px;
}

body:has(.reset-link-sent-screen) .reset-link-sent-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

body:has(.reset-link-sent-screen) .reset-link-sent-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

body:has(.reset-link-sent-screen) .reset-link-sent-icon img {
    width: 72px;
    height: 72px;
}

body:has(.reset-link-sent-screen) .reset-link-sent-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.reset-link-sent-screen) .reset-link-sent-subtitle {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

body:has(.reset-link-sent-screen) .reset-link-sent-copy-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body:has(.reset-link-sent-screen) .reset-link-sent-copy {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

body:has(.reset-link-sent-screen) .reset-link-sent-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 8px;
}

body:has(.reset-link-sent-screen) .reset-link-sent-primary,
body:has(.reset-link-sent-screen) .reset-link-sent-secondary {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none !important;
    color: #000000 !important;
}

body:has(.reset-link-sent-screen) .reset-link-sent-primary {
    background: #ff8200;
    border: none;
    box-shadow: none;
}

body:has(.reset-link-sent-screen) .reset-link-sent-secondary {
    background: #ffffff;
    border: 2px solid #d9d9d9;
}

body:has(.reset-link-sent-screen) .reset-link-sent-primary:hover,
body:has(.reset-link-sent-screen) .reset-link-sent-primary:focus,
body:has(.reset-link-sent-screen) .reset-link-sent-secondary:hover,
body:has(.reset-link-sent-screen) .reset-link-sent-secondary:focus {
    text-decoration: none !important;
    color: #000000 !important;
}

@media (max-width: 767px) {
    body:has(.reset-link-sent-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.reset-link-sent-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(#kc-passwd-update-form) {
    background: #f5f5f5 !important;
}

body:has(#kc-passwd-update-form) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(#kc-passwd-update-form) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(#kc-passwd-update-form) #kc-page-title {
    display: none !important;
}

body:has(#kc-passwd-update-form) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(#kc-passwd-update-form) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(#kc-passwd-update-form) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(#kc-passwd-update-form) #kc-passwd-update-form {
    margin: 0;
    width: 100%;
}

body:has(#kc-passwd-update-form) .update-password-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 20px;
}

body:has(#kc-passwd-update-form) .update-password-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(#kc-passwd-update-form) .update-password-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(#kc-passwd-update-form) .update-password-icon img {
    width: 72px;
    height: 72px;
}

body:has(#kc-passwd-update-form) .update-password-title {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(#kc-passwd-update-form) .update-password-subtitle {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(#kc-passwd-update-form) .update-password-field-group {
    margin: 0 !important;
    padding: 0 20px;
}

body:has(#kc-passwd-update-form) .update-password-field-group .input-label {
    color: #757575 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

body:has(#kc-passwd-update-form) .update-password-field-group input {
    font-size: 16px !important;
    line-height: 20px !important;
    color: #161314 !important;
    font-weight: 400 !important;
}

body:has(#kc-passwd-update-form) .update-password-field-group input::placeholder {
    color: #757575 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body:has(#kc-passwd-update-form) .update-password-actions-group {
    margin: 0 !important;
    padding: 0 20px;
}

body:has(#kc-passwd-update-form) .update-password-actions-group #kc-form-buttons {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

body:has(#kc-passwd-update-form) .update-password-actions-group input[type="submit"] {
    width: 100%;
    height: 48px;
    border-radius: 9999px !important;
    border: none !important;
    background: #ff8200 !important;
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

body:has(#kc-passwd-update-form) .update-password-actions-group button[type="submit"] {
    width: 100%;
    height: 48px;
    border-radius: 9999px !important;
    border: 2px solid #cccccc !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

@media (max-width: 767px) {
    body:has(#kc-passwd-update-form) .login-pf-page {
        padding: 0;
    }

    body:has(#kc-passwd-update-form) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

body:has(.password-updated-screen) {
    background: #f5f5f5 !important;
}

body:has(.password-updated-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

body:has(.password-updated-screen) .card-pf {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
}

body:has(.password-updated-screen) #kc-page-title {
    display: none !important;
}

body:has(.password-updated-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 56px;
    padding: 8px 20px 0;
}

body:has(.password-updated-screen) #kc-locale {
    position: static;
    width: 100%;
    text-align: right;
}

body:has(.password-updated-screen) #kc-content-wrapper {
    margin-top: 0 !important;
    padding: 0;
}

body:has(.password-updated-screen) #kc-info-message {
    margin: 0;
}

body:has(.password-updated-screen) .password-updated-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 20px;
}

body:has(.password-updated-screen) .password-updated-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

body:has(.password-updated-screen) .password-updated-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(.password-updated-screen) .password-updated-icon img {
    width: 72px;
    height: 72px;
}

body:has(.password-updated-screen) .password-updated-header h1 {
    margin: 0;
    color: #161314;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 700;
}

body:has(.password-updated-screen) .password-updated-copy {
    margin: 0;
    color: #161314;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

body:has(.password-updated-screen) .password-updated-actions {
    width: 100%;
    padding: 0 20px;
}

body:has(.password-updated-screen) .password-updated-button {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    border: none;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", "Roboto", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none !important;
}

body:has(.password-updated-screen) .password-updated-button:hover,
body:has(.password-updated-screen) .password-updated-button:focus {
    text-decoration: none !important;
    color: #000000 !important;
}

@media (max-width: 767px) {
    body:has(.password-updated-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.password-updated-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border-radius: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body:has(#kc-form-login) .card-pf,
    body:has(#kc-register-form) .card-pf,
    body:has(.verify-email-screen) .card-pf,
    body:has(.ready-activate-screen) .card-pf,
    body:has(.confirm-email-address-screen) .card-pf,
    body:has(.account-activated-screen) .card-pf,
    body:has(#kc-reset-password-form) .card-pf,
    body:has(.reset-link-sent-screen) .card-pf,
    body:has(#kc-passwd-update-form) .card-pf,
    body:has(.password-updated-screen) .card-pf {
        max-width: 45%;
    }
}

@media (min-width: 1025px) {
    body:has(#kc-form-login) .card-pf,
    body:has(#kc-register-form) .card-pf,
    body:has(.verify-email-screen) .card-pf,
    body:has(.ready-activate-screen) .card-pf,
    body:has(.confirm-email-address-screen) .card-pf,
    body:has(.account-activated-screen) .card-pf,
    body:has(#kc-reset-password-form) .card-pf,
    body:has(.reset-link-sent-screen) .card-pf,
    body:has(#kc-passwd-update-form) .card-pf,
    body:has(.password-updated-screen) .card-pf {
        max-width: 30%;
    }
}

@media (min-width: 1025px) {
    body:has(.confirm-email-address-screen) .login-pf-page {
        padding: 40px;
    }

    body:has(.confirm-email-address-screen) .card-pf {
        width: 960px !important;
        max-width: calc(100vw - 80px) !important;
        min-height: auto !important;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.68) !important;
        box-shadow: 0 18px 45px rgba(22, 19, 20, 0.08);
        backdrop-filter: blur(6px);
    }

    body:has(.confirm-email-address-screen) .login-pf-page .login-pf-header {
        min-height: 72px;
        padding: 22px 72px 0;
    }

    body:has(.confirm-email-address-screen) #kc-content,
    body:has(.confirm-email-address-screen) #kc-content-wrapper,
    body:has(.confirm-email-address-screen) #kc-info,
    body:has(.confirm-email-address-screen) #kc-info-wrapper,
    body:has(.confirm-email-address-screen) #kc-info-message {
        width: 100%;
        box-sizing: border-box;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-screen {
        gap: 28px;
        padding: 18px 0 0;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-header {
        padding: 0 72px;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-header h1 {
        font-size: 22px;
        line-height: 28px;
        letter-spacing: 0.22px;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-summary {
        max-width: 760px;
        margin: 0 auto !important;
        font-size: 24px;
        line-height: 32px;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-actions {
        display: flex;
        justify-content: center;
        padding: 18px 72px 64px;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-button {
        width: 660px;
        max-width: 100%;
        min-height: 64px;
        padding: 16px 28px;
        font-size: 22px;
        line-height: 28px;
    }
}

@media (min-width: 1440px) {
    body:has(.confirm-email-address-screen) .card-pf {
        width: 960px !important;
    }

    body:has(.confirm-email-address-screen) .confirm-email-address-summary {
        max-width: 760px;
    }
}

@media (max-width: 767px) {
    :root {
        --luemaas-mobile-page-gutter: 12px;
        --luemaas-mobile-content-inset: 16px;
        --luemaas-mobile-card-radius: 12px;
        --luemaas-mobile-card-offset-x: -14px;
    }

    body:has(#kc-form-login) .login-pf-page,
    body:has(#kc-register-form) .login-pf-page,
    body:has(.verify-email-screen) .login-pf-page,
    body:has(.ready-activate-screen) .login-pf-page,
    body:has(.confirm-email-address-screen) .login-pf-page,
    body:has(.account-activated-screen) .login-pf-page,
    body:has(#kc-reset-password-form) .login-pf-page,
    body:has(.reset-link-sent-screen) .login-pf-page,
    body:has(#kc-passwd-update-form) .login-pf-page,
    body:has(.password-updated-screen) .login-pf-page {
        min-height: 100vh;
        padding: var(--luemaas-mobile-page-gutter) !important;
        align-items: stretch;
        justify-content: center;
        box-sizing: border-box;
    }

    body:has(#kc-form-login) .card-pf,
    body:has(#kc-register-form) .card-pf,
    body:has(.verify-email-screen) .card-pf,
    body:has(.ready-activate-screen) .card-pf,
    body:has(.confirm-email-address-screen) .card-pf,
    body:has(.account-activated-screen) .card-pf,
    body:has(#kc-reset-password-form) .card-pf,
    body:has(.reset-link-sent-screen) .card-pf,
    body:has(#kc-passwd-update-form) .card-pf,
    body:has(.password-updated-screen) .card-pf {
        width: 100% !important;
        max-width: 430px !important;
        min-height: calc(100vh - (var(--luemaas-mobile-page-gutter) * 2)) !important;
        margin: 0 auto !important;
        border-radius: var(--luemaas-mobile-card-radius);
        transform: translateX(var(--luemaas-mobile-card-offset-x));
    }

    body:has(#kc-form-login) #kc-form-login {
        min-height: calc(100vh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
    }

    @supports (min-height: 100svh) {
        body:has(#kc-form-login) .login-pf-page,
        body:has(#kc-register-form) .login-pf-page,
        body:has(.verify-email-screen) .login-pf-page,
        body:has(.ready-activate-screen) .login-pf-page,
        body:has(.confirm-email-address-screen) .login-pf-page,
        body:has(.account-activated-screen) .login-pf-page,
        body:has(#kc-reset-password-form) .login-pf-page,
        body:has(.reset-link-sent-screen) .login-pf-page,
        body:has(#kc-passwd-update-form) .login-pf-page,
        body:has(.password-updated-screen) .login-pf-page {
            min-height: 100svh;
        }

        body:has(#kc-form-login) .card-pf,
        body:has(#kc-register-form) .card-pf,
        body:has(.verify-email-screen) .card-pf,
        body:has(.ready-activate-screen) .card-pf,
        body:has(.confirm-email-address-screen) .card-pf,
        body:has(.account-activated-screen) .card-pf,
        body:has(#kc-reset-password-form) .card-pf,
        body:has(.reset-link-sent-screen) .card-pf,
        body:has(#kc-passwd-update-form) .card-pf,
        body:has(.password-updated-screen) .card-pf {
            min-height: calc(100svh - (var(--luemaas-mobile-page-gutter) * 2)) !important;
        }

        body:has(#kc-form-login) #kc-form-login {
            min-height: calc(100svh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        }
    }

    body:has(#kc-form-login) .login-pf-page .login-pf-header,
    body:has(#kc-register-form) .login-pf-page .login-pf-header,
    body:has(.verify-email-screen) .login-pf-page .login-pf-header,
    body:has(.ready-activate-screen) .login-pf-page .login-pf-header,
    body:has(.confirm-email-address-screen) .login-pf-page .login-pf-header,
    body:has(.account-activated-screen) .login-pf-page .login-pf-header,
    body:has(#kc-reset-password-form) .login-pf-page .login-pf-header,
    body:has(.reset-link-sent-screen) .login-pf-page .login-pf-header,
    body:has(#kc-passwd-update-form) .login-pf-page .login-pf-header,
    body:has(.password-updated-screen) .login-pf-page .login-pf-header,
    body:has(#kc-form-login) #kc-welcome.welcome-section,
    body:has(#kc-register-form) #kc-welcome.welcome-section,
    body:has(.verify-email-screen) .verify-email-header,
    body:has(.verify-email-screen) .verify-email-next-steps,
    body:has(.verify-email-screen) #kc-info-wrapper,
    body:has(.ready-activate-screen) .ready-activate-header,
    body:has(.ready-activate-screen) .ready-activate-content,
    body:has(.ready-activate-screen) .ready-activate-actions,
    body:has(.confirm-email-address-screen) .confirm-email-address-header,
    body:has(.confirm-email-address-screen) .confirm-email-address-actions,
    body:has(.account-activated-screen) .account-activated-header,
    body:has(.account-activated-screen) .account-activated-profile,
    body:has(.account-activated-screen) .account-activated-benefits,
    body:has(.account-activated-screen) .account-activated-actions,
    body:has(#kc-reset-password-form) .reset-password-header,
    body:has(#kc-reset-password-form) .reset-password-field-group,
    body:has(#kc-reset-password-form) .reset-password-actions-group,
    body:has(.reset-link-sent-screen) .reset-link-sent-header,
    body:has(.reset-link-sent-screen) .reset-link-sent-actions,
    body:has(#kc-passwd-update-form) .update-password-header,
    body:has(#kc-passwd-update-form) .update-password-field-group,
    body:has(#kc-passwd-update-form) .update-password-actions-group,
    body:has(.password-updated-screen) .password-updated-header,
    body:has(.password-updated-screen) .password-updated-actions,
    body:has(#kc-form-login) #kc-form-login label,
    body:has(#kc-register-form) #kc-register-form label,
    body:has(#kc-reset-password-form) #kc-reset-password-form label,
    body:has(#kc-passwd-update-form) #kc-passwd-update-form label,
    body:has(#kc-form-login) #kc-form-login .login-bottom-actions {
        padding-left: var(--luemaas-mobile-content-inset) !important;
        padding-right: var(--luemaas-mobile-content-inset) !important;
    }

    body:has(#kc-form-login) #input-error,
    body:has(#kc-register-form) [id^="input-error"],
    body:has(#kc-reset-password-form) [id^="input-error"],
    body:has(#kc-passwd-update-form) [id^="input-error"] {
        margin-left: var(--luemaas-mobile-content-inset) !important;
        margin-right: var(--luemaas-mobile-content-inset) !important;
    }
}

@media (max-width: 390px), (max-width: 767px) and (max-height: 700px) {
    :root {
        --luemaas-mobile-page-gutter: 8px;
        --luemaas-mobile-content-inset: 14px;
        --luemaas-mobile-card-offset-x: -14px;
    }

    body:has(#kc-form-login) .welcome-icon img,
    body:has(#kc-register-form) .welcome-icon img,
    body:has(.verify-email-screen) .verify-email-icon img,
    body:has(.ready-activate-screen) .ready-activate-icon img,
    body:has(.account-activated-screen) .account-activated-icon img,
    body:has(#kc-reset-password-form) .reset-password-icon img,
    body:has(.reset-link-sent-screen) .reset-link-sent-icon img,
    body:has(#kc-passwd-update-form) .update-password-icon img,
    body:has(.password-updated-screen) .password-updated-icon img {
        width: 64px;
        height: 64px;
    }

    body:has(#kc-form-login) #kc-welcome.welcome-section h1,
    body:has(#kc-register-form) #kc-welcome.welcome-section h1,
    body:has(.verify-email-screen) .verify-email-header h1,
    body:has(.ready-activate-screen) .ready-activate-header h1,
    body:has(.confirm-email-address-screen) .confirm-email-address-header h1,
    body:has(.account-activated-screen) .account-activated-header h1,
    body:has(#kc-reset-password-form) .reset-password-title,
    body:has(.reset-link-sent-screen) .reset-link-sent-header h1,
    body:has(#kc-passwd-update-form) .update-password-title,
    body:has(.password-updated-screen) .password-updated-header h1 {
        font-size: 22px !important;
        line-height: 28px !important;
    }
}

@media (max-width: 767px) {
    body:has(.verify-email-screen) {
        --luemaas-verify-email-card-offset-x: -14px;
    }

    body:has(.verify-email-screen) .card-pf {
        transform: translateX(var(--luemaas-verify-email-card-offset-x));
    }

    body:has(.verify-email-screen) #kc-content,
    body:has(.verify-email-screen) #kc-content-wrapper,
    body:has(.verify-email-screen) #kc-info,
    body:has(.verify-email-screen) #kc-info-wrapper,
    body:has(.verify-email-screen) .verify-email-screen,
    body:has(.verify-email-screen) .verify-email-actions {
        width: 100%;
        box-sizing: border-box;
        background: #ffffff !important;
    }

    body:has(.verify-email-screen) .verify-email-header,
    body:has(.verify-email-screen) .verify-email-next-steps,
    body:has(.verify-email-screen) #kc-info-wrapper {
        padding-left: var(--luemaas-mobile-content-inset) !important;
        padding-right: var(--luemaas-mobile-content-inset) !important;
    }

    body:has(.verify-email-screen) .verify-email-actions {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    body:has(.verify-email-screen) #kc-content-wrapper {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
    }

    @supports (min-height: 100svh) {
        body:has(.verify-email-screen) #kc-content-wrapper {
            min-height: calc(100svh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        }
    }

    body:has(.verify-email-screen) #kc-info {
        margin-top: auto;
        width: 100%;
    }

    body:has(.verify-email-screen) #kc-info-wrapper {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        text-align: center;
    }

    body:has(.verify-email-screen) .verify-email-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    body:has(.verify-email-screen) .verify-email-resend-button {
        width: auto;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    body:has(#kc-reset-password-form) .reset-password-field-group {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-top: 1px solid #cccccc;
        border-bottom: 1px solid #cccccc;
    }

    body:has(#kc-reset-password-form) .reset-password-field-group label {
        border: none !important;
        min-height: 76px !important;
        padding: 16px var(--luemaas-mobile-content-inset) 12px !important;
        background: #ffffff !important;
    }

    body:has(#kc-reset-password-form) .reset-password-field-group .input-label {
        margin: 0 0 8px !important;
        color: #818181 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }

    body:has(#kc-reset-password-form) .reset-password-field-group input#username {
        color: #161314 !important;
        font-size: 18px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        height: 24px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:has(#kc-reset-password-form) .reset-password-field-group input#username::placeholder {
        color: #161314 !important;
        font-size: 18px !important;
        opacity: 1;
        font-weight: 400 !important;
    }

    body:has(#kc-reset-password-form) .reset-password-screen {
        min-height: calc(100vh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        display: flex;
        flex-direction: column;
    }

    @supports (min-height: 100svh) {
        body:has(#kc-reset-password-form) .reset-password-screen {
            min-height: calc(100svh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        }
    }

    body:has(#kc-reset-password-form) .reset-password-actions-group {
        margin-top: auto !important;
        padding: 20px var(--luemaas-mobile-content-inset) !important;
    }

    body:has(#kc-reset-password-form) #kc-form-buttons {
        gap: 20px !important;
    }

    body:has(#kc-reset-password-form) #kc-form-buttons input[type="submit"] {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    body:has(.reset-link-sent-screen) .reset-link-sent-screen {
        min-height: calc(100vh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 20px;
    }

    @supports (min-height: 100svh) {
        body:has(.reset-link-sent-screen) .reset-link-sent-screen {
            min-height: calc(100svh - 68px - (var(--luemaas-mobile-page-gutter) * 2));
        }
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-header {
        align-items: center;
        gap: 20px;
        padding: 0 var(--luemaas-mobile-content-inset) !important;
        text-align: center;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-copy-group {
        gap: 0;
        padding: 40px var(--luemaas-mobile-content-inset) 0 !important;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-copy {
        margin: 0;
        color: #161314;
        font-size: 16px;
        line-height: 22px;
        font-weight: 400;
        letter-spacing: 0;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-email-display {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 44px var(--luemaas-mobile-content-inset) 0 !important;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-email-label {
        color: #818181;
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-email-value {
        color: #818181;
        font-size: 18px;
        line-height: 24px;
        font-weight: 400;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-expiry {
        margin: 38px var(--luemaas-mobile-content-inset) 0;
        color: #2455f4;
        font-size: 18px;
        line-height: 24px;
        font-weight: 700;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-actions {
        margin-top: auto;
        padding: 20px var(--luemaas-mobile-content-inset) 0 !important;
        gap: 32px;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-primary {
        width: 100%;
        height: auto;
        min-height: 24px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #666666 !important;
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-secondary {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 9999px;
        background: #ff8200;
        color: #000000 !important;
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-primary:hover,
    body:has(.reset-link-sent-screen) .reset-link-sent-primary:focus {
        background: transparent;
        color: #666666 !important;
        text-decoration: none !important;
    }

    body:has(.reset-link-sent-screen) .reset-link-sent-secondary:hover,
    body:has(.reset-link-sent-screen) .reset-link-sent-secondary:focus {
        background: #ff8200;
        color: #000000 !important;
        text-decoration: none !important;
    }
}

body:has(#kc-form-login) #kc-form-login input#username::placeholder,
body:has(#kc-form-login) #kc-form-login input#password::placeholder,
body:has(#kc-reset-password-form) .reset-password-field-group input#username::placeholder {
    color: #818181 !important;
    opacity: 1;
}

@media (max-width: 767px) {
    body:has(#kc-reset-password-form) .reset-password-field-group {
        border-top: none !important;
        border-bottom: 1px solid #cccccc !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body:has(#kc-reset-password-form) .reset-password-field-group label {
        border: none !important;
        min-height: 76px !important;
        padding: 16px var(--luemaas-mobile-content-inset) 12px !important;
        background: #ffffff !important;
    }
}

body:has(.verify-email-screen) .verify-email-header h1,
body:has(.verify-email-screen) .verify-email-subtitle {
    text-align: left !important;
    align-self: stretch;
}

body:has(.verify-email-screen) .verify-email-icon {
    align-self: center;
}

body:has(.email-action-flow.confirm-email-address-screen),
body:has(.email-action-flow.email-verified-screen) {
    background: linear-gradient(180deg, #f7fafc 0%, #ecf1f5 100%) !important;
}

body:has(.email-action-flow.confirm-email-address-screen) .login-pf-page,
body:has(.email-action-flow.email-verified-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body:has(.email-action-flow.confirm-email-address-screen) .card-pf,
body:has(.email-action-flow.email-verified-screen) .card-pf {
    width: min(100%, 56rem);
    min-height: min(40rem, calc(100vh - 48px));
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 32px;
    box-shadow: 0 24px 64px rgba(22, 19, 20, 0.08);
    overflow: hidden;
}

body:has(.email-action-flow.confirm-email-address-screen) #kc-page-title,
body:has(.email-action-flow.email-verified-screen) #kc-page-title {
    display: none !important;
}

body:has(.email-action-flow.confirm-email-address-screen) .login-pf-page .login-pf-header,
body:has(.email-action-flow.email-verified-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 0;
    padding: 16px 24px 0;
}

body:has(.email-action-flow.confirm-email-address-screen) #kc-locale,
body:has(.email-action-flow.email-verified-screen) #kc-locale {
    position: static;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

body:has(.email-action-flow.confirm-email-address-screen) #kc-content,
body:has(.email-action-flow.confirm-email-address-screen) #kc-content-wrapper,
body:has(.email-action-flow.confirm-email-address-screen) #kc-info-message,
body:has(.email-action-flow.email-verified-screen) #kc-content,
body:has(.email-action-flow.email-verified-screen) #kc-content-wrapper,
body:has(.email-action-flow.email-verified-screen) #kc-info-message {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    min-height: 0;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow,
body:has(.email-action-flow.email-verified-screen) .email-action-flow {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: clamp(40px, 7vw, 64px) clamp(24px, 6vw, 48px) 0;
    text-align: center;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__shell,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

body:has(.email-action-flow.email-verified-screen) .email-action-flow {
    gap: clamp(36px, 6vw, 64px);
}

body:has(.email-action-flow.email-verified-screen) .email-action-flow__shell {
    flex: 0 0 auto;
    justify-content: flex-start;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__brand,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__brand {
    display: flex;
    justify-content: center;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__logo,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__logo {
    width: clamp(148px, 34vw, 196px);
    height: auto;
    display: block;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__copy,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-header,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__copy {
    padding: 0;
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-header h1 {
    margin: 0;
    color: #161314;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-summary {
    margin: 0 !important;
    width: min(100%, 22rem);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(17, 24, 39, 0.04);
    color: #5f6368;
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.45;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: pretty;
    text-align: center;
}

body:has(.email-action-flow.email-verified-screen) .email-verified-summary {
    margin: 0;
    max-width: 24rem;
    color: #161314;
    font-size: clamp(19px, 3vw, 24px);
    line-height: 1.45;
    font-weight: 600;
    text-wrap: pretty;
}

body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__actions,
body:has(.email-action-flow.email-verified-screen) .email-action-flow__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 28px clamp(24px, 6vw, 48px) clamp(36px, 6vw, 44px);
    box-sizing: border-box;
}

body:has(.email-action-flow.email-verified-screen) .email-action-flow__actions {
    padding-top: 8px;
    padding-bottom: clamp(56px, 7vw, 72px);
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-button,
body:has(.email-action-flow.email-verified-screen) .email-verified-button {
    width: min(100%, 22rem);
    min-height: 56px;
    border: none;
    border-radius: 9999px;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(255, 130, 0, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body:has(.email-action-flow.email-verified-screen) .email-verified-button {
    width: min(100%, 32rem);
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-button:hover,
body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-button:focus,
body:has(.email-action-flow.email-verified-screen) .email-verified-button:hover,
body:has(.email-action-flow.email-verified-screen) .email-verified-button:focus {
    background: #ff8200;
    color: #000000 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 130, 0, 0.3);
}

body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-button:active,
body:has(.email-action-flow.email-verified-screen) .email-verified-button:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    body:has(.email-action-flow.confirm-email-address-screen) .login-pf-page,
    body:has(.email-action-flow.email-verified-screen) .login-pf-page {
        padding: 0;
    }

    body:has(.email-action-flow.confirm-email-address-screen) .card-pf,
    body:has(.email-action-flow.email-verified-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    body:has(.email-action-flow.confirm-email-address-screen) .login-pf-page .login-pf-header,
    body:has(.email-action-flow.email-verified-screen) .login-pf-page .login-pf-header {
        padding: 16px var(--luemaas-mobile-content-inset, 24px) 0;
    }

    body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow,
    body:has(.email-action-flow.email-verified-screen) .email-action-flow {
        padding: 72px var(--luemaas-mobile-content-inset, 24px) 0;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow {
        gap: 0;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow__shell {
        flex: 1 1 auto;
        justify-content: center;
    }

    body:has(.email-action-flow.confirm-email-address-screen) .email-action-flow__actions,
    body:has(.email-action-flow.email-verified-screen) .email-action-flow__actions {
        margin-top: auto;
        padding: 32px var(--luemaas-mobile-content-inset, 24px) 48px;
    }

    body:has(.email-action-flow.confirm-email-address-screen) .confirm-email-address-summary {
        max-width: none;
        width: 100%;
    }
}

@media (min-width: 1440px) {
    body:has(.email-action-flow.email-verified-screen):has(#kc-info-message) .login-pf-page .card-pf {
        width: min(100%, 60rem);
        padding: 0 !important;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow {
        gap: clamp(44px, 5vw, 72px);
        padding: 88px 72px 64px;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow__shell {
        gap: 0;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow__logo {
        width: 208px;
    }

    body:has(.email-action-flow.email-verified-screen) .email-action-flow__actions {
        padding-top: 0;
        padding-bottom: 64px;
    }

    body:has(.email-action-flow.email-verified-screen) .email-verified-button {
        width: min(100%, 24rem);
    }
}

body:has(.password-updated-screen) {
    background: linear-gradient(180deg, #f7fafc 0%, #ecf1f5 100%) !important;
}

body:has(.password-updated-screen) .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body:has(.password-updated-screen) .card-pf {
    width: min(100%, 42rem);
    min-height: min(40rem, calc(100vh - 48px));
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 32px;
    box-shadow: 0 24px 64px rgba(22, 19, 20, 0.08);
    overflow: hidden;
}

body:has(.password-updated-screen) #kc-page-title {
    display: none !important;
}

body:has(.password-updated-screen) .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 0;
    padding: 16px 24px 0;
}

body:has(.password-updated-screen) #kc-locale {
    position: static;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

body:has(.password-updated-screen) #kc-content,
body:has(.password-updated-screen) #kc-content-wrapper,
body:has(.password-updated-screen) #kc-info-message {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    min-height: 0;
}

body:has(.password-updated-screen) .password-updated-screen {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 4vw, 40px);
    padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 48px) clamp(36px, 5vw, 52px);
    text-align: center;
}

body:has(.password-updated-screen) .password-updated-header {
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
}

body:has(.password-updated-screen) .password-updated-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body:has(.password-updated-screen) .password-updated-icon img {
    width: 88px;
    height: 88px;
    display: block;
}

body:has(.password-updated-screen) .password-updated-header h1 {
    margin: 0;
    color: #161314;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body:has(.password-updated-screen) .password-updated-copy {
    margin: 0;
    max-width: 22rem;
    color: #5f6368;
    font-size: clamp(16px, 2.1vw, 18px);
    line-height: 1.55;
    font-weight: 400;
    text-wrap: pretty;
}

@media (min-width: 1024px) {
    body:has(.password-updated-screen) .password-updated-header {
        max-width: 30rem;
    }

    body:has(.password-updated-screen) .password-updated-copy {
        max-width: 28rem;
    }
}

@media (min-width: 1440px) {
    body:has(.password-updated-screen):has(#kc-info-message) .login-pf-page .card-pf {
        width: min(100%, 54rem);
        padding: 0 !important;
    }

    body:has(.password-updated-screen) .password-updated-screen {
        gap: clamp(32px, 4vw, 44px);
        padding: 88px 72px 64px;
    }

    body:has(.password-updated-screen) .password-updated-header {
        max-width: 32rem;
    }

    body:has(.password-updated-screen) .password-updated-copy {
        max-width: 30rem;
    }

    body:has(.password-updated-screen) .password-updated-button {
        width: min(100%, 24rem);
    }
}

body:has(.password-updated-screen) .password-updated-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

body:has(.password-updated-screen) .password-updated-button {
    width: min(100%, 22rem);
    min-height: 56px;
    border: none;
    border-radius: 9999px;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(255, 130, 0, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body:has(.password-updated-screen) .password-updated-button:hover,
body:has(.password-updated-screen) .password-updated-button:focus {
    background: #ff8200;
    color: #000000 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 130, 0, 0.3);
}

body:has(.password-updated-screen) .password-updated-button:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    body:has(.password-updated-screen) .login-pf-page {
        padding: 0;
        align-items: stretch;
    }

    body:has(.password-updated-screen) .card-pf {
        width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    body:has(.password-updated-screen) .login-pf-page .login-pf-header {
        padding: 16px var(--luemaas-mobile-content-inset, 24px) 0;
    }

    body:has(.password-updated-screen) .password-updated-screen {
        justify-content: center;
        gap: 28px;
        padding: 72px var(--luemaas-mobile-content-inset, 24px) 48px;
    }

    body:has(.password-updated-screen) .password-updated-header {
        max-width: none;
    }

    body:has(.password-updated-screen) .password-updated-copy {
        max-width: 20rem;
    }

    body:has(.password-updated-screen) .password-updated-actions {
        width: 100%;
    }

    body:has(.password-updated-screen) .password-updated-button {
        width: min(100%, 22rem);
    }
}

/* :has() fallback for confirm-email / email-verified info flows */
body.email-action-flow-page {
    background: linear-gradient(180deg, #f7fafc 0%, #ecf1f5 100%) !important;
}

body.email-action-flow-page .login-pf-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.email-action-flow-page .card-pf {
    width: min(100%, 56rem);
    min-height: min(40rem, calc(100vh - 48px));
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 32px;
    box-shadow: 0 24px 64px rgba(22, 19, 20, 0.08);
    overflow: hidden;
}

body.email-action-flow-page .login-pf-page .login-pf-header {
    margin-bottom: 0 !important;
    min-height: 0;
    padding: 16px 24px 0;
}

body.email-action-flow-page #kc-locale {
    position: static;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

body.email-action-flow-page #kc-content,
body.email-action-flow-page #kc-content-wrapper,
body.email-action-flow-page #kc-info-message {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    min-height: 0;
}

body.email-action-flow-page .email-action-flow {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: clamp(40px, 7vw, 64px) clamp(24px, 6vw, 48px) 0;
    text-align: center;
}

body.email-action-flow-page .email-verified-screen.email-action-flow {
    gap: clamp(36px, 6vw, 64px);
}

body.email-action-flow-page .email-action-flow__shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

body.email-action-flow-page .email-verified-screen .email-action-flow__shell {
    flex: 0 0 auto;
    justify-content: flex-start;
}

body.email-action-flow-page .email-action-flow__brand {
    display: flex;
    justify-content: center;
}

body.email-action-flow-page .email-action-flow__logo {
    width: clamp(148px, 34vw, 196px);
    height: auto;
    display: block;
}

body.email-action-flow-page .email-action-flow__copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0;
}

body.email-action-flow-page .confirm-email-address-header h1 {
    margin: 0;
    color: #161314;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body.email-action-flow-page .confirm-email-address-summary {
    margin: 0 !important;
    width: min(100%, 22rem);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(17, 24, 39, 0.04);
    color: #5f6368;
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.45;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: pretty;
    text-align: center;
}

body.email-action-flow-page .email-action-flow__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 28px clamp(24px, 6vw, 48px) clamp(36px, 6vw, 44px);
    box-sizing: border-box;
}

body.email-action-flow-page .email-verified-actions.email-action-flow__actions {
    padding-top: 8px;
    padding-bottom: clamp(56px, 7vw, 72px);
}

body.email-action-flow-page .confirm-email-address-button,
body.email-action-flow-page .email-verified-button {
    width: min(100%, 22rem);
    min-height: 56px;
    border: none;
    border-radius: 9999px;
    background: #ff8200;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(255, 130, 0, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.email-action-flow-page .email-verified-button {
    width: min(100%, 32rem);
}

body.email-action-flow-page .confirm-email-address-button:hover,
body.email-action-flow-page .confirm-email-address-button:focus,
body.email-action-flow-page .email-verified-button:hover,
body.email-action-flow-page .email-verified-button:focus {
    background: #ff8200;
    color: #000000 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 130, 0, 0.3);
}

body.email-action-flow-page .confirm-email-address-button:active,
body.email-action-flow-page .email-verified-button:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    body.email-action-flow-page .login-pf-page {
        padding: 0;
    }

    body.email-action-flow-page .card-pf {
        width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    body.email-action-flow-page .login-pf-page .login-pf-header {
        padding: 16px var(--luemaas-mobile-content-inset, 24px) 0;
    }

    body.email-action-flow-page .email-action-flow {
        padding: 72px var(--luemaas-mobile-content-inset, 24px) 0;
    }
}