@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=M+PLUS+Rounded+1c:wght@800;900&display=swap");
@import url("https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css");
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
body, html {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body {
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #333a4c;
  background: url(../img/login.jpg) no-repeat center center fixed;
  background-size: cover;
}

a,
a:link,
a:visited {
  color: #0a84ae;
  text-decoration: none;
}
a:hover {
  color: #0da8dc;
  text-decoration: none;
}

.login-pf-page {
  background: #fff;
  width: 480px;
  max-width: 100%;
  margin: auto;
  padding: 40px;
  box-shadow: 0px 0px 16px -8px #0000003b;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 8px;
  border: 1px solid #ffffff42;
  background: linear-gradient(167deg, #ffffffdb, #ffffffb8);
}

#kc-header-wrapper {
  background: url(../img/pathozoom_logo.svg);
  width: 64px;
  height: 64px;
  overflow: hidden;
  text-indent: -200px;
  background-size: contain;
  margin-bottom: 38px;
}

#kc-page-title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 34px;
  display: block;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* User context bar (username + Restart login) */
.dl-user-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(10, 132, 174, 0.06);
  border: 1px solid rgba(10, 132, 174, 0.15);
  border-radius: 8px;
  flex-wrap: wrap;
}

.dl-user-context-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dl-user-context-info i {
  font-size: 22px;
  color: #0a84ae;
  flex-shrink: 0;
}

.dl-user-context-name {
  font-size: 15px;
  font-weight: 600;
  color: #333a4c;
  letter-spacing: 0.01em;
}

.dl-user-context-restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #0a84ae;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dl-user-context-restart:hover {
  background: rgba(10, 132, 174, 0.12);
  color: #087399;
}

.dl-user-context-restart i {
  font-size: 16px;
  opacity: 0.9;
}

.pf-c-form__label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 24px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
}

/* Labels with text content (for OTP and other enhanced fields) */
.pf-c-form__label span {
  display: none;
}

.pf-c-form__label.dl-label-with-text {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

.pf-c-form__label.dl-label-with-text i {
  font-size: 20px;
  color: #0a84ae;
  flex-shrink: 0;
}

.pf-c-form__label.dl-label-with-text span {
  display: inline;
}
.dl-header-subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  color: #494949;
  margin-top: 10px;
}
.form-group {
  position: relative;
  margin-bottom: 10px;
}
.pf-c-form-control {
  margin: 0;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  height: 48px;
  border-radius: 4px;
  padding-left: 48px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.pf-c-form-control:focus,
.pf-c-form-control:hover {
  border-color: #f2f2f2;
}
.pf-c-form-control:-webkit-autofill::first-line {
  font-size: 18px;
}

.pf-c-form-control--password {
  padding-right: 48px;
}
.login-pf-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.pf-c-button {
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 4px;
  display: block;
  text-align: center;
}

.pf-m-primary {
  background-color: #333a4c;
  color: #fff !important;
  width: 100%;
  line-height: 48px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.pf-m-primary:disabled,
.pf-m-primary[disabled] {
  background-color: #a0a4ad;
  color: #e0e0e0 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.pf-m-primary:not(:disabled):hover {
  background-color: #444c5e;
}

.dl-term-of-use {
  font-size: 16px;
}

.login-pf-signup {
  margin-top: 38px;
}

.login-pf-signup span {
  margin-right: 5px;
}

.login-pf-signup a {
  white-space: nowrap;
}

.pf-c-input-group .pf-c-button {
  background: none;
  position: absolute;
  width: 48px;
  height: 48px;
  top: 0;
  right: 0;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255);
  border-radius: 0;
}

.dl-info {
  margin-bottom: 20px;
}

.dl-btn-back {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid #0000001a;
  padding-top: 20px;
  margin-bottom: -10px;
}
.dl-btn-login {
  margin-top: 20px;
  margin-bottom: -10px;
}
.combine-input {
  display: flex;
  gap: 10px;
}

.combine-input > div:nth-child(2) label {
  display: none;
}

.combine-input > div:nth-child(2) .pf-c-form-control {
  padding-left: 12px;
}
.pf-c-form__helper-text {
  color: #9f0d17;
  font-size: 12px;
}
.alert-error {
  color: #9f0d17;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  color: #006586;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-warning {
  margin-bottom: 20px;
}

#kc-form-options {
  margin-bottom: 20px;
}
/* =====================================================
   OTP / TOTP Setup Styles
   ===================================================== */
.dl-totp-setup {
  margin-bottom: 20px;
}

/* OTP Info Box - for login page */
.dl-otp-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 132, 174, 0.1);
  border: 1px solid rgba(10, 132, 174, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.dl-otp-info-box i {
  font-size: 24px;
  color: #0a84ae;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-otp-info-box p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.dl-otp-info-box div {
  flex: 1;
}

.dl-info-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.dl-info-text {
  font-weight: 400;
  color: #333;
  margin: 0;
}

.dl-info-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* OTP Info Box with Steps - top-aligned icon */
.dl-otp-info-box--with-steps {
  align-items: flex-start;
}

.dl-otp-info-box--with-steps > i {
  margin-top: 2px;
}

/* Inline Steps Title (no icon) */
.dl-steps-title-inline {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 12px 0 8px 0;
}

/* Compact Steps List (smaller numbers, no icons) */
.dl-steps-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: step-counter;
}

.dl-steps-list-compact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  counter-increment: step-counter;
  position: relative;
  padding-left: 24px;
}

.dl-steps-list-compact li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #0a84ae;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* TOTP Setup Introduction */
.dl-totp-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 132, 174, 0.08);
  border-left: 3px solid #0a84ae;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.dl-totp-intro i {
  font-size: 24px;
  color: #0a84ae;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-totp-intro p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* Step descriptions */
.dl-totp-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 12px 0;
}

/* Field Help Text */
.dl-field-help-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.dl-field-help-text i {
  font-size: 16px;
  color: #0a84ae;
  flex-shrink: 0;
  margin-top: 3px;
  align-self: flex-start;
}

/* OTP Step-by-Step Guide */
.dl-otp-steps-guide {
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid #0a84ae;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.dl-steps-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.dl-steps-title i {
  font-size: 18px;
  color: #0a84ae;
}

.dl-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step-counter;
}

.dl-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  counter-increment: step-counter;
  position: relative;
  padding-left: 36px;
}

.dl-steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #0a84ae;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.dl-steps-list li i {
  font-size: 18px;
  color: #0a84ae;
  flex-shrink: 0;
  margin-top: 2px;
}

/* OTP Troubleshooting Section */
.dl-otp-troubleshooting {
  margin-top: 20px;
  margin-bottom: 10px;
}

.dl-troubleshooting-details {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
}

.dl-troubleshooting-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  user-select: none;
  transition: background-color 0.2s ease;
}

.dl-troubleshooting-summary::-webkit-details-marker {
  display: none;
}

.dl-troubleshooting-summary::marker {
  display: none;
}

.dl-troubleshooting-summary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.dl-troubleshooting-summary i {
  font-size: 18px;
  color: #0a84ae;
  flex-shrink: 0;
}

.dl-troubleshooting-list {
  list-style: none;
  padding: 12px 16px 16px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dl-troubleshooting-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.dl-troubleshooting-list li i {
  font-size: 16px;
  color: #0a84ae;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Troubleshooting list with bullet points instead of icons */
.dl-troubleshooting-list--bullets {
  list-style: disc;
  padding-left: 36px;
}

.dl-troubleshooting-list--bullets li {
  display: list-item;
  padding-left: 0;
}

.dl-troubleshooting-list--bullets li::marker {
  font-size: 1.2em;
}

.dl-totp-steps {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 6px;
}

.dl-totp-steps > li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dl-totp-steps > li:last-child {
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.dl-totp-steps p {
  margin-bottom: 8px;
}

.dl-app-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: disc;
  padding: 0 0 0 20px;
  margin: 8px 0 0 0;
}

.dl-app-list li {
  font-size: 14px;
  font-weight: 600;
}

.dl-qr-code {
  display: flex;
  justify-content: center;
  padding: 16px;
  margin: 12px 0;
}

.dl-qr-code img {
  max-width: 200px;
  height: auto;
}

.dl-qr-hint {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.dl-totp-secret {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 10px 12px;
  border-radius: 4px;
  margin: 12px 0;
}

.dl-totp-secret span {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  flex: 1;
}

.dl-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dl-copy-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.dl-copy-btn i {
  font-size: 18px;
  color: #666;
}

.dl-copy-btn:hover i {
  color: #0a84ae;
}

.dl-totp-hint {
  color: #666;
  font-size: 13px;
  margin-top: 8px;
}

.dl-totp-config-hint {
  color: #444;
  font-size: 14px;
  margin: 12px 0 8px 0;
}

.dl-totp-params {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px 0;
  font-size: 14px;
  color: #333;
}

.dl-totp-params li {
  margin-bottom: 6px;
}

.dl-totp-params li strong {
  font-weight: 700;
  color: #111;
}

/* Unified code input styling for OTP and Recovery Codes */
.dl-code-input {
  text-align: center;
  font-size: 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
  padding-left: 48px !important;
  padding-right: 16px !important;
}

/* OTP-specific: slightly more spacing for 6-digit codes */
.dl-code-input.dl-otp-input {
  letter-spacing: 6px;
}

/* =====================================================
   Recovery Authentication Codes Styles
   ===================================================== */
.dl-recovery-setup {
  margin-bottom: 20px;
}

/* Info box with light sky blue background */
.dl-recovery-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 132, 174, 0.1);
  border: 1px solid rgba(10, 132, 174, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.dl-recovery-info-box i {
  font-size: 28px;
  color: #0a84ae;
  flex-shrink: 0;
}

.dl-recovery-info-box p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Warning box */
.dl-recovery-warning {
  display: flex;
  gap: 12px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.dl-recovery-warning i {
  font-size: 24px;
  color: #f57c00;
  flex-shrink: 0;
}

.dl-recovery-warning p {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.dl-recovery-warning p:last-child {
  margin-bottom: 0;
}

.dl-recovery-warning .dl-warning-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.dl-recovery-codes-container {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.dl-recovery-codes-container h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.dl-recovery-codes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.dl-recovery-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dl-code-number {
  font-size: 12px;
  color: #999;
  min-width: 20px;
}

.dl-recovery-code code {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

.dl-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dl-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dl-btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.dl-btn-icon i {
  font-size: 16px;
}

.dl-recovery-confirm {
  margin-bottom: 16px;
}

.dl-recovery-confirm .checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.dl-recovery-confirm .checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Recovery Code Input Page */
.dl-recovery-input-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 132, 174, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.dl-recovery-input-info i {
  font-size: 32px;
  color: #0a84ae;
}

.dl-recovery-input-info--small i {
  font-size: 24px;
}

.dl-recovery-input-info p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Recovery code input uses the unified code input style */

/* =====================================================
   Select Authenticator Styles
   ===================================================== */
.dl-select-authenticator-header {
  margin-bottom: 20px;
}

.dl-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.dl-section-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.dl-authenticator-list {
  margin-bottom: 20px;
}

.dl-authenticator-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dl-authenticator-tile:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #0a84ae;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dl-authenticator-tile.selected {
  background: rgba(10, 132, 174, 0.1);
  border-color: #0a84ae;
  border-width: 2px;
}

.dl-authenticator-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 174, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.dl-authenticator-icon i {
  font-size: 24px;
  color: #0a84ae;
}

.dl-authenticator-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a84ae;
  border-radius: 50%;
  flex-shrink: 0;
}

.dl-authenticator-number span {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.dl-authenticator-info {
  flex: 1;
}

.dl-authenticator-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.dl-authenticator-help {
  display: block;
  font-size: 13px;
  color: #666;
}

.dl-authenticator-select {
  flex-shrink: 0;
}

.dl-authenticator-select i {
  font-size: 24px;
  color: #999;
}

.dl-authenticator-tile:hover .dl-authenticator-select i {
  color: #0a84ae;
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 480px),(max-height: 480px) {
  html, body {
    height: auto;
  }
  body {
    display: block;
    padding: 20px;
  }
  .login-pf-page {
    padding: 24px;
  }
  #kc-page-title {
    font-size: 24px;
  }
  .dl-user-context {
    padding: 10px 14px;
    gap: 12px;
  }
  .dl-user-context-name {
    font-size: 14px;
  }
  .dl-user-context-restart {
    font-size: 12px;
    padding: 5px 8px;
  }
  .login-pf-settings {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  /* Code input responsive */
  .dl-code-input {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .dl-code-input.dl-otp-input {
    letter-spacing: 4px;
  }

  /* OTP info boxes responsive */
  .dl-otp-info-box,
  .dl-totp-intro {
    padding: 12px;
    gap: 10px;
  }

  .dl-otp-info-box i,
  .dl-totp-intro i {
    font-size: 20px;
  }

  .dl-otp-info-box p,
  .dl-totp-intro p {
    font-size: 13px;
  }

  .dl-field-help-text {
    font-size: 12px;
    gap: 6px;
  }

  .dl-field-help-text i {
    font-size: 14px;
  }

  .dl-otp-steps-guide {
    padding: 12px;
  }

  .dl-steps-list li {
    font-size: 13px;
    padding-left: 32px;
  }

  .dl-steps-list li::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .dl-steps-list li i {
    font-size: 16px;
  }

  .dl-troubleshooting-summary {
    padding: 10px 12px;
    font-size: 13px;
  }

  .dl-troubleshooting-list {
    padding: 10px 12px 12px 12px;
  }

  .dl-troubleshooting-list li {
    font-size: 12px;
  }

  /* Recovery codes responsive */
  .dl-recovery-codes-list {
    grid-template-columns: 1fr;
  }

  .dl-recovery-actions {
    flex-direction: column;
  }

  .dl-btn-icon {
    justify-content: center;
  }

  /* Authenticator tiles responsive */
  .dl-authenticator-tile {
    padding: 12px;
    gap: 12px;
  }

  .dl-authenticator-icon {
    width: 40px;
    height: 40px;
  }

  .dl-authenticator-icon i {
    font-size: 20px;
  }
}

/* =====================================================
   Language Selector Styles
   ===================================================== */
#kc-locale {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
}

.login-pf-page {
  position: relative;
}

#kc-locale-wrapper {
  position: relative;
}

#kc-locale-dropdown {
  position: relative;
}

#kc-current-locale-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 14px;
  color: #333a4c;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

#kc-current-locale-link:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  color: #333a4c;
}

#kc-current-locale-link::after {
  content: "\F0140";
  font-family: "Material Design Icons";
  font-size: 16px;
  transition: transform 0.2s ease;
}

#kc-locale-dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 101;
  padding: 0;
  margin: 0;
}

#kc-locale-wrapper:hover #kc-locale-dropdown ul,
#kc-locale-dropdown ul:hover {
  display: block;
}

#kc-locale-wrapper:hover #kc-current-locale-link::after {
  transform: rotate(180deg);
}

#kc-locale-dropdown ul li {
  list-style: none;
}

#kc-locale-dropdown ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333a4c;
  text-decoration: none;
  transition: background 0.2s ease;
}

#kc-locale-dropdown ul li a:hover {
  background: rgba(10, 132, 174, 0.1);
  color: #0a84ae;
}

/* Responsive language selector */
@media (max-width: 480px), (max-height: 480px) {
  #kc-locale {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
  }

  #kc-current-locale-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* =========================================
   Cookie Banner
   ========================================= */
.dl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(167deg, #ffffffdb, #ffffffb8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12), 0 -1px 0 rgba(10, 132, 174, 0.08);
  padding: 20px 24px;
  font-family: "DM Sans", sans-serif;
}

.dl-cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.dl-cookie-banner-body {
  flex: 1;
  min-width: 0;
}

.dl-cookie-banner-text {
  font-size: 14px;
  font-weight: 400;
  color: #333a4c;
  line-height: 1.6;
  margin: 0 0 6px 0;
}

.dl-cookie-banner-info {
  font-size: 14px;
  color: #555f70;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.dl-cookie-banner-info a {
  color: #0a84ae;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-cookie-banner-info a:hover {
  color: #0da8dc;
}

.dl-cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  color: #0a84ae;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.dl-cookie-toggle:hover {
  color: #0da8dc;
}

.dl-cookie-toggle:focus-visible {
  outline: 2px solid #0a84ae;
  outline-offset: 3px;
  border-radius: 3px;
}

.dl-cookie-toggle-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.dl-cookie-details {
  background: rgba(10, 132, 174, 0.05);
  border: 1px solid rgba(10, 132, 174, 0.15);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 4px;
}

.dl-cookie-details p {
  font-size: 13px;
  color: #555f70;
  line-height: 1.6;
  margin: 0;
}

.dl-cookie-details p + p {
  margin-top: 6px;
}

.dl-cookie-banner-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.dl-cookie-accept {
  background: #0a84ae;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(10, 132, 174, 0.3);
}

.dl-cookie-accept:hover {
  background: #0da8dc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 132, 174, 0.4);
}

.dl-cookie-accept:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(10, 132, 174, 0.3);
}

.dl-cookie-accept:focus-visible {
  outline: 2px solid #0a84ae;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .dl-cookie-banner {
    padding: 16px;
  }

  .dl-cookie-banner-inner {
    flex-direction: column;
    gap: 16px;
  }

  .dl-cookie-banner-actions {
    width: 100%;
    padding-top: 0;
  }

  .dl-cookie-accept {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}