* {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    system-ui,
    sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100dvh;
}

body > div,
#kc-content,
#kc-content-wrapper {
  min-height: 100dvh;
}

.skema-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f3f4f6;
}

.skema-page-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.skema-form-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  width: 498px;
  display: flex;
  gap: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skema-logo {
  height: 30px;
  width: auto;
  margin: 9px 0 0;
}

.skema-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  border-radius: 12px;
  width: 100%;
  padding: 4px;
  background: #f5f5f5;
  gap: 4px;
}

.skema-tab {
  text-decoration: none;
  outline: none;
  border: none;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skema-tab--active {
  background: #ffffff;
}

.skema-tab:not(.skema-tab--active):hover {
  background: #eff9ff;
  cursor: pointer;
}

.skema-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skema-field-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skema-field-row-split {
  display: flex;
  gap: 12px;
  flex-direction: row;
  width: 100%;
}

.skema-field-group--half {
  flex: 1;
  min-width: 0;
}

.skema-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.skema-field-label-row--terms {
  justify-content: flex-end;
  min-height: 1em;
}

.skema-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #6a7d8f;
  flex: 1;
  min-width: 0;
}

.skema-field-validation-msg {
  font-size: 12px;
  font-weight: 500;
  color: #f32e5e;
  text-align: right;
  line-height: 1.25;
  max-width: 55%;
  flex-shrink: 0;
}

.skema-input {
  height: 48px;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  border: none;
  background: #f5f5f5;
  width: 100%;
}

.skema-input::placeholder {
  color: #6d6e72;
}

.skema-input:focus {
  border: 1px solid rgb(13, 153, 255);
  background: #f5f5f5;
}

.skema-input[readonly],
.skema-input[disabled] {
  color: #6d6e72;
  background: #ececed;
  cursor: default;
}

.skema-input[readonly]:focus,
.skema-input[disabled]:focus {
  border: none;
  background: #ececed;
}

.skema-text--error {
  color: #f32e5e;
}

.skema-input--error {
  border: 1px solid #f32e5e !important;
  background: #fff4f6 !important;
}

/* Password pair: invalid/incomplete while typing (criteria or match not met) */
.skema-input--policy-error {
  border: 1px solid #f32e5e !important;
  background: #fff4f6 !important;
}

/* Password pair: all rules pass and passwords match */
.skema-input.skema-input--success {
  border: 1px solid #00c29a !important;
  background: #effff9 !important;
}

.skema-input.skema-input--success:focus {
  border: 1px solid #00c29a !important;
  background: #effff9 !important;
}

.skema-input--policy-error:focus,
.skema-input--error:focus {
  border: 1px solid #f32e5e !important;
  background: #fff4f6 !important;
}

.skema-password-field {
  position: relative;
}

.skema-password-field .skema-input {
  padding-right: 40px;
}

.skema-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.skema-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skema-form-footer--end {
  justify-content: flex-end;
}

.skema-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #111827;
}

.skema-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.skema-checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background-image: url('../img/checkbox.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.skema-checkbox input:checked + .skema-checkbox-box {
  background-image: url('../img/checkbox-filled.svg');
}

.skema-forgot {
  color: #0d99ff;
  text-decoration: none;
  cursor: pointer;
}

.skema-forgot a:hover {
  text-decoration: underline;
}

.skema-login-error-slot {
  min-height: 24px;
  margin-top: 4px;
}

.skema-login-error {
  color: #f32e5e;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.skema-field-error-message {
  font-size: 12px;
  color: #f32e5e;
  min-height: 0;
}

.skema-password-rules {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.skema-password-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.skema-password-rule-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.skema-password-rule--ok {
  color: #00c29a;
}

.skema-password-rule--ok .skema-password-rule-icon {
  background-image: url('../img/ok.svg');
}

.skema-password-rule--error {
  color: #f32e5e;
}

.skema-password-rule--error .skema-password-rule-icon {
  background-image: url('../img/error.svg');
}

.skema-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  width: 100%;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.skema-button-primary {
  color: #ffffff;
  background: #0d99ff;
}

.skema-button-primary:hover {
  background: #0a81eb;
}

.skema-button-secondary {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e9e9e9;
}

.skema-button-secondary:hover {
  background: #eff9ff;
}

.skema-button-outline-icon {
  font-size: 18px;
  line-height: 1;
}

.skema-form-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skema-check-email .skema-text {
  margin-bottom: 4px;
}

.skema-resend {
  width: 100%;
  min-height: 24px;
}

.skema-resend-link,
.skema-resend-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.skema-resend-link--hidden,
.skema-resend-countdown--hidden {
  display: none !important;
}

.skema-resend-link {
  color: #0d99ff;
  text-decoration: none;
  cursor: pointer;
}

.skema-resend-countdown {
  color: #9ca3af;
  cursor: default;
  user-select: none;
}

.skema-resend--cooldown .skema-resend-countdown {
  color: #9ca3af;
}

.skema-text-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.skema-text-block--center {
  align-items: center;
  text-align: center;
}

.skema-title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.skema-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.skema-error-page .skema-error-page .skema-text {
  margin-bottom: 0;
}

.skema-support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0d99ff;
  text-decoration: none;
}

.skema-login-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skema-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.skema-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e9e9e9;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.skema-social-button:hover {
  background: #f9fafb;
}

.skema-social-button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.skema-form-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.skema-form-divider::before,
.skema-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.skema-form-divider span {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}
