﻿/* ============================================================
   style.css — Auth Page Styles
   HospitalityOS HRMS Admin Template

   USED ON:
   - login.html           (Sign In)
   - signup.html          (Create Account)
   - forgot-password.html (Forgot Password)
   - reset-password.html  (Reset Password)
   ============================================================ */

/* --- Split-panel layout (login, signup) --- */
.auth-wrapper {
  min-height: 100vh;
}

.auth-left {
  position: relative;
  overflow: hidden;
  /* background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%); */
  min-height: 100vh;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
z-index: 1;
}
.auth-left::before{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      #FFFFFFD9 0%,
      #F8F7F5E6 100%);
      z-index: -2;
}

.auth-left-bg {
  /* position: absolute; */
  /* inset: 0; */
  /* background-color: #1C2A4A; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0px 40px;
}

.auth-left-content {
  /* position: absolute;
  bottom: 48px;
  left: 48px;
  right: 48px; */
  color: #fff;
  z-index: 1;
  max-width: 630px;
}

.auth-left-content .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: var(--font-secondary);
}

.auth-left-content h2 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.212;
  margin-bottom: 20px;
  color: var(--color-dark);
  text-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.16);
  letter-spacing: -2.6%;
}

.auth-left-content p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.688;
    color: var(--color-dark);
    max-width: 450px;
}

/* .auth-left-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.auth-left-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
} */

/* Logo pinned to top-left of the image panel */
.auth-left-logo{
  padding: 36px 0px 0 40px;
}
.auth-left-logo a{
  /* position: absolute;
  top: 28px;
  left: 32px; */
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}


.auth-left-footer{
  padding: 0px 40px 18px;
}
.auth-left-footer ul{
  /* position: absolute;
  bottom: 24px;
  left: 48px;
  right: 48px; */
  display: flex;
  gap: 32px;
  z-index: 1;
  flex-wrap: wrap;
}

.auth-left-footer a {
  font-size: 13px;
  color: #6B7280;
  text-decoration: none;
}

.auth-left-footer a:hover {
  color: var(--color-primary);
}

.auth-right-col {
  background: #FAF9F7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right {
  padding: 64px 76px;
}


/* --- Centered card layout (forgot-password, reset-password) --- */
.auth-body-centered {
  background: var(--color-bg);
  font-family: var(--font-primary);
  min-height: 100vh;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 40px rgba(0,0,0,.08);
  padding: 48px 40px;
}

/* --- Shared auth elements --- */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 48px;
  text-decoration: none;
}

.auth-logo-centered {
  justify-content: center;
  margin-bottom: 36px;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btn-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 8px;
  font-family: var(--font-secondary);
}

.auth-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 28px;
}

/* --- Form labels (scoped to auth) --- */
.form-label{
  font-size: 11px;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 6px;
}

/* --- Auth inputs: text, select, textarea --- */
/* border-radius: 16px | border: 1px solid #ECEAE4 | padding: 15px 16px | bg: #FFFFFF */
.auth-wrapper .form-control,
.auth-card .form-control,
.auth-wrapper .form-select,
.auth-card .form-select {
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 13px 16px;
  background-color: #FFFFFF;
  height: auto;
  font-size: 14px;
  color: var(--color-body);
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.4;
}

.auth-wrapper .form-control.has-icon,
.auth-card .form-control.has-icon,
.has-icon .select2-container--default .select2-selection--single {
  padding-left: 42px;
}

.auth-wrapper .form-control.has-icon-right,
.auth-card .form-control.has-icon-right {
  padding-right: 44px;
}

.auth-wrapper .form-control:focus,
.auth-card .form-control:focus,
.auth-wrapper .form-select:focus,
.auth-card .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

/* --- Select2 within auth pages --- */
/* border-radius: 16px | border: 1px solid #ECEAE4 | padding: 15px 16px | bg: #FFFFFF */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single {
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 13px 16px;
  background-color: #FFFFFF;
  height: auto;
  font-size: 14px;
}

/* full-width when inside an icon wrapper */
.auth-input-wrap .select2-container {
  width: 100% !important;
}

/* offset rendered text to clear the left icon (globe = ~30px) */
.auth-input-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 22px;
}

.auth-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.auth-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  padding-left: 0;
  color: var(--color-body);
}

.auth-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow,
.auth-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 14px;
}

.auth-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.auth-card .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

/* --- Input icon wrappers --- */
.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-placeholder);
  z-index: 5;
  font-size: 14px;
  pointer-events: none;
}

.auth-toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-placeholder);
  cursor: pointer;
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.auth-toggle-password:hover {
  color: var(--color-charcoal);
}

/* --- Auth submit button --- */
.btn-auth {
  width: auto;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--btn-gradient);
  box-shadow: var(--btn-gradient-shadow);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  text-align: center;
  line-height: 1.467;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
}


.btn-auth:hover  { opacity: .92; color: #fff; }
.btn-auth:active { transform: scale(.99); }
.btn-auth-outline {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  line-height: 1.467;
  white-space: nowrap;
}

.btn-auth-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-xl {
  padding: 15px 16px;
  font-size: 15px;
}
/* --- Social sign-in buttons --- */
.auth-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s;
}

.auth-social-btn:hover { 
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary); }

/* --- Divider with centred text --- */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.auth-divider span {
  position: relative;
  background: #FAF9F7;
  padding: 0 12px;
  font-size: 12px;
  color: var(--color-muted);
}

/* --- Auth misc links --- */
.auth-link {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  }

.auth-link:hover {
  /* text-decoration: underline; */
  color: var(--color-primary-dark);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 28px;
}

.auth-back-link:hover { color: var(--color-primary-dark); }

/* Info banner (forgot-password) */
.auth-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-info-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-info-banner i {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.text-an-account{
  font-size: 14px;
  color: #6B7280;
  font-weight: 400;
  margin-bottom: 0;
}
.text-an-account a{
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
}
/* --- Phone input group --- */
.auth-phone-group {
  display: flex;
}

.auth-phone-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--color-surface-alt);
  border: 1px solid #ECEAE4;
  border-right: none;
  border-radius: 16px 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  white-space: nowrap;
}

.auth-phone-flag + .form-control {
  border-radius: 0 16px 16px 0 !important;
  border-left: none;
}

/* --- Password strength bar --- */
.auth-strength-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  display: flex;
  gap: 4px;
}

.auth-strength-bar span {
  flex: 1;
  border-radius: 2px;
  background: var(--color-border);
  transition: background .3s;
}

.auth-strength-bar.strong span { background: var(--color-primary); }

.auth-strength-label {
  font-size: 11px;
  text-align: right;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
}

/* Passwords match indicator */
.auth-match-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-match-text i { font-size: 11px; }
.auth-right-logo a {
  position: absolute;
  top: 40px;
  left: 32px;
  display: block;
}

/* --- Password requirement list --- */
.auth-requirement {
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-requirement.met { color: var(--color-success); }
.auth-requirement i   { font-size: 11px; }

/* --- Wizard step indicator --- */
.wizard-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: #fff;
  color: var(--color-placeholder);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, color .2s;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-placeholder);
  white-space: nowrap;
  transition: color .2s;
}

.wizard-step-item.active .wizard-step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.wizard-step-item.active .wizard-step-label {
  color: var(--color-primary);
  font-weight: 600;
}

.wizard-step-item.completed .wizard-step-circle {
  border-color: var(--color-success);
  background: var(--color-success);
  color: #fff;
}

.wizard-step-item.completed .wizard-step-label {
  color: var(--color-success);
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin-top: 15px;
  transition: background .2s;
}

.wizard-step-connector.completed {
  background: var(--color-success);
}

/* --- Wizard panels --- */
.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

/* --- Wizard navigation --- */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}



@media (max-width: 1399px) {
  .auth-right {
    padding: 48px;
  }
}
@media (max-width: 1199px) {
  .auth-right {
    padding: 24px;
  }
  .auth-left-content h2 {
    font-size: 38px;
    margin-bottom: 16px;
  }
  .auth-left-content .eyebrow{
    margin-bottom: 8px;
  }
  .auth-left-content p{
      margin-bottom: 24px;
      line-height: 1.4;
  }
}
@media (max-width: 991px){
  .auth-right {
      padding: 24px;
    }
  .auth-left-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }
    .auth-left-logo{
        padding: 24px 0px 0 24px;
    }

    .auth-left-bg{
      padding: 0px 24px;
    }
    .auth-left-footer {
      padding: 0px 24px 12px;
    }
        .auth-left-footer ul{
          gap: 16px;
        }

    .btn-xl {
      padding: 12px 16px;
      font-size: 14px;
    }
}
@media (max-width: 768px){
.auth-right-col {
    background: url('../images/login-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: transparent;
    z-index: 1;
    position: relative;
    padding: 80px 24px;
  }
    .auth-right-col::before{
      content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(to bottom, #FFFFFFD9 0%, #F8F7F5E6 100%);
        z-index: -2;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.945);
    }
        .auth-right{
          max-width: 576px;
          margin: 0 auto;
          width: 100%;
          padding: 32px;
          background-color: #FAF9F7;
          border-radius: 30px;
          box-shadow: var(--shadow-xl);
        }
    .auth-title {
      font-size: 24px;}
    .auth-sub {
      font-size: 12px;
      margin-bottom: 18px;
    }
    .auth-right-logo a {
      top: 16px;
      left: 24px;
    }
        .text-an-account,.auth-link{
      font-size: 12px;
        }

}

@media (max-width: 576px){
  .auth-right {
     
      padding: 24px;
     
    }
}
@media (max-width: 424px) {
  .auth-right {
    padding: 24px 16px;
  }
}

@media (min-width: 768px) {
  
    .auth-right-logo {
      display: none;
    }
       
}

/* --- Business Setup (Step 2) --- */

/* Business preview card */
.biz-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ECEAE4;
  border-radius: 16px;
  padding: 12px 16px;
  background: #FFFFFF;
  gap: 12px;
}

.biz-preview-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.biz-preview-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.biz-preview-right {
  text-align: right;
  flex-shrink: 0;
}

.biz-preview-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Chain radio options */
.chain-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.chain-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-body);
  font-weight: 500;
  user-select: none;
}

.chain-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.chain-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .15s, transform .15s;
}

.chain-option.selected .chain-radio {
  border-color: var(--color-primary);
}

.chain-option.selected .chain-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* Business type grid */
.biz-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.biz-type-card {
  border: 1px solid #ECEAE4;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s;
  user-select: none;
  background-color: #FFFFFF;
}

.biz-type-card:hover {
  border-color: var(--color-primary);
}

.biz-type-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.biz-type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  transition: color .15s;
}

.biz-type-card.selected .biz-type-name {
  color: #fff;
}

.biz-type-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.45;
  transition: color .15s;
}

.biz-type-card.selected .biz-type-desc {
  color: rgba(255,255,255,.8);
}

/* --- Department step (Step 3) --- */

.dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dept-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #ECEAE4;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.dept-check-card:hover:not(.selected) {
  border-color: #CBD5E1;
  background: #FAFAFA;
}

.dept-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #CBD5E1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .18s, background .18s;
}

.dept-check-box i {
  font-size: 9px;
  color: #fff;
  opacity: 0;
  transition: opacity .12s;
}

.dept-check-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.3;
}

/* ── selected state ── */
.dept-check-card.selected {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.dept-check-card.selected .dept-check-box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.dept-check-card.selected .dept-check-box i {
  opacity: 1;
}

/* divider between sections */
.dept-divider {
  border: none;
  border-top: 1px solid #ECEAE4;
  margin: 14px 0;
}

/* custom dept sub-label */
.dept-custom-sub {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 10px;
}

/* custom dept row */
.dept-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dept-custom-row .form-control {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #ECEAE4;
  padding: 10px 14px;
  font-size: 13px;
  background: #fff;
  height: auto;
}

.dept-custom-row .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

.btn-dept-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--color-danger-border);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  padding: 0;
}

.btn-dept-remove:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}

.btn-add-dept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal);
  border: 1.5px solid #ECEAE4;
  border-radius: 10px;
  background: #fff;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  margin-top: 2px;
}

.btn-add-dept:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

