:root {
  --primary-main:    #FF6A00;
  --primary-dark:    #d64800;
  --primary-light:   #ff8055;

  --secondary-main:  #006b5e;
  --secondary-dark:  #005246;
  --secondary-light: #54aa9b;

  --bg-body:         #ffffff;
  --bg-card:         #ffffffab;

  --text-primary:    #0f0f0f;
  --text-secondary:  #5a5a5a;
  --text-on-primary: #ffffff;
  --text-muted:      #9ca3af;

  --font-family:     'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-btn:      0 2px 8px rgba(255, 106, 0, 0.25);
  --shadow-input:    0 1px 3px rgba(0, 0, 0, 0.04);
  --radius:          0px;

  --border-light:    #e5e7eb;
  --border-focus:    var(--primary-main);
}

/* --- Base ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-main);
  text-decoration: none;
}

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

body {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Page layout ----------------------------------------- */
.login-pf {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: url('../img/bg.jpg') no-repeat;
  background-size: cover;
  background-position: center;
}

.login-pf body {
    background: #ffffff00 none !important;
}

.login-pf-header {
  text-align: center;
  width: 100%;
}

.login-pf-header .col-md-10 {
  width: 100%;
  float: none;
  text-align: center;
}

.login-pf-header header {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}

.login-pf-page {
  width: 100%;
  max-width: 460px;
}

.subtitle {
  display: none;
  font-size: 0px;
}

/* --- Logo / header --------------------------------------- */
#kc-header {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 36px;
}

#kc-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

#kc-header-wrapper::before {
  content: '';
  display: block;
  width: min(600px, calc(100vw - 48px));
  height: 64px;
  margin-top: 40px;
  background: url('../img/logo.png') no-repeat center;
  background-size: contain;
}

/* --- Card ------------------------------------------------ */
.card-pf {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

#kc-page-title {
  display: table;
  margin: 0 auto 28px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.required {
  color: var(--primary-dark);
}

/* Keep label + asterisk on same row */
.form-group > [class*="col-"]:first-child {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.form-group > [class*="col-"]:first-child label {
  margin-bottom: 0;
}

/* --- Inputs ---------------------------------------------- */
.form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: var(--radius);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-c-input-group, .pf-c-form-control, .input-group-addon, .input-group-btn, .input-group-text {
  border: none !important;
  box-shadow: none !important;
}

.input-group .btn {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-bottom-color: var(--primary-main);
  border-width: 2px;
}

.form-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pf-m-primary {
  background: var(--primary-main) !important;
}

.pf-m-primary:hover {
  background: var(--primary-dark) !important;
}

.pf-c-button, .pf-m-control {
  border: none;
}

.pf-c-button:hover, .pf-m-control:hover {
  border: none;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 46px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--primary-main);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-primary:active {
  transform: translateY(2px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Submit button --------------------------------------- */
#kc-form-buttons {
  margin-top: 28px;
}

#kc-form-buttons .btn {
  width: 100%;
}

#kc-login {
  background-color: var(--primary-main) !important;
  border-color: var(--primary-main) !important;
  color: var(--text-on-primary) !important;
  box-shadow: var(--shadow-btn) !important;
  margin-top: -12px;
}

#kc-login:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.kc-logo-text {
  margin-top: -30px;
  width: 100%;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Remember me + forgot password row ------------------- */
#kc-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* --- Links (forgot password, register, back) ------------- */
#kc-form-options a,
#kc-registration a,
#kc-register-link a,
#kc-back-to-login a {
  color: var(--primary-main);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

#kc-form-options a:hover,
#kc-registration a:hover,
#kc-register-link a:hover,
#kc-back-to-login a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Registration / back-to-login banners ---------------- */
#kc-registration, #kc-back-to-login {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Social login ---------------------------------------- */
#kc-social-providers {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

#kc-social-providers h2 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#kc-social-providers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#kc-social-providers li {
  margin: 0;
}

#kc-social-providers li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#kc-social-providers li a:hover {
  border-color: var(--primary-main);
  background-color: rgba(255, 106, 0, 0.04);
}

/* --- Info text ------------------------------------------- */
#kc-info-wrapper {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}
