:root {
  --ontbo-bg: #ffffff; /* standard background */
  --ontbo-bg-alt: #e8efff; /* alternate background */
  --ontbo-surface: #ffffff; /* login box background */
  --ontbo-surface-2: #ffffff;
  --ontbo-primary: #e55e10; /* accent color */
  --ontbo-primary-hover: #d14d00;
  --ontbo-text: #000000; /* standard text color */
  --ontbo-text-muted: #888888;
  --ontbo-danger: #ff5c7a;
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-lg: 8px;
  --radius-md: 4px;
  --font-sans: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

.ontbo-html, .ontbo-body {
  height: 100%;
}

.ontbo-body {
  background: linear-gradient(135deg, var(--ontbo-bg) 0%, var(--ontbo-bg-alt) 100%);
  color: var(--ontbo-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 12pt;
  font-family: var(--font-sans);
}

.ontbo-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.ontbo-card {
  width: 100%;
  max-width: 640px;
  background: var(--ontbo-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

.ontbo-card__header {
  padding: 28px 28px 0 28px;
}

#kc-header {
  display: none; /* hide default title block */
}

.ontbo-header-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ontbo-logo {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.ontbo-logo img {
  height: 34px;
  filter: invert(1);
}

#kc-content {
  padding: 24px 28px 28px 28px;
}

#kc-content-wrapper {
  width: 100%;
}

#kc-form-buttons {
  padding:0px;
}

h1#kc-page-title {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin: 8px 0 18px 0;
}

.form-horizontal .form-group {
  margin-right: 0px;
  margin-left: 0px;
}

.form-group {
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.form-group label {
  display: block;
  color: var(--ontbo-text-muted);
  font-size: 12pt;
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 12px;
  z-index: 1;
  color: var(--ontbo-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.input {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #ddd;
  color: var(--ontbo-text);
  border-radius: 2px;
  padding: 12px 14px 12px 40px;
  font-size: 16px;
  box-sizing: border-box;
}

.input::placeholder {
  color: var(--ontbo-text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--ontbo-primary);
  box-shadow: 0 0 0 3px rgba(229,94,16,0.2);
}

.input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.btn-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  background: transparent;
  color: var(--ontbo-text-muted);
  border: none;
  cursor: pointer;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 18px;
  font-size: 18px;
}

.btn-primary {
  background: var(--ontbo-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(229,94,16,0.3);
}

.btn-primary:hover {
  background: #c44d0a;
  filter: none;
}

.pf-c-alert {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: var(--ontbo-text);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pf-c-alert__title {
  font-size: 16px;
}

.kc-social-icon-text {
  margin-left: 8px;
}

.ontbo-footer {
  display: flex;
  justify-content: center;
  padding: 0 0 26px 0;
}

.ontbo-footer a {
  color: var(--ontbo-text-muted);
  text-decoration: none;
}

.ontbo-footer a:hover {
  color: var(--ontbo-text);
  text-decoration: underline;
}

/* Required fields note */
.required-fields-note {
  text-align: center;
  margin: 8px 0 18px 0;
  font-size: 14px;
  color: var(--ontbo-text-muted);
}

.required {
  color: var(--ontbo-primary);
  font-weight: bold;
}

/* Checkbox styling */
.checkbox {
  margin: 16px 0;
}

.checkbox label {
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  color: var(--ontbo-text);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox input[type="checkbox"] {
  display: inline-block;
  vertical-align:middle;
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ontbo-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox label span {
  display: flex;
  vertical-align: sub;
  margin-left: 20px;
}

.checkbox a {
  color: var(--ontbo-primary);
  text-decoration: none;
}

.checkbox a:hover {
  text-decoration: underline;
}

/* Links styling */
a {
  color: var(--ontbo-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ontbo-primary-hover);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .ontbo-card {
    max-width: 100%;
  }
}
