/* OFOQ Customer Portal - Unified Auth Design System */
body.portal-auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f8fb !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Tajawal, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.portal-auth-main {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f6f8fb;
  box-sizing: border-box;
}

.ofoq-auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: #ffffff;
  border: 1px solid #e4e9f0;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(11, 23, 42, 0.06);
  box-sizing: border-box;
}

.ofoq-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.ofoq-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff0e7;
  color: #f36c21;
  margin-bottom: 16px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ofoq-auth-logo:hover {
  transform: scale(1.04);
}

.ofoq-auth-logo.success {
  background: #eaf8ef;
  color: #16a34a;
}

.ofoq-auth-title {
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0b172a;
  margin-bottom: 6px;
}

.ofoq-auth-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

.ofoq-auth-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #132033;
  margin-bottom: 6px;
  display: block;
}

.ofoq-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ofoq-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 4;
}

.ofoq-form-control {
  height: 48px;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 44px;
  padding-left: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #0b172a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ofoq-form-control:focus {
  border-color: #f36c21;
  box-shadow: 0 0 0 3.5px rgba(243, 108, 33, 0.15);
  outline: none;
}

.ofoq-form-control.ofoq-form-control-single-icon {
  padding-left: 14px;
}

.ofoq-form-control.ofoq-password-input {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 14px !important;
  padding-right: 48px !important;
}

.ofoq-reveal-btn {
  position: absolute;
  right: 8px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ofoq-reveal-btn:hover {
  color: #0b172a;
  background-color: #f1f5f9;
}

.ofoq-helper-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 5px;
}

.ofoq-forgot-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f36c21;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.ofoq-forgot-link:hover {
  color: #c94b08;
  text-decoration: underline;
}

.ofoq-checkbox {
  border-color: #cbd5e1;
  cursor: pointer;
}

.ofoq-checkbox:checked {
  background-color: #f36c21;
  border-color: #f36c21;
}

.ofoq-remember-label {
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.ofoq-auth-btn {
  height: 48px;
  background: #f36c21;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(243, 108, 33, 0.22);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.ofoq-auth-btn:hover {
  background: #c94b08;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(243, 108, 33, 0.3);
}

.ofoq-auth-btn:active {
  transform: translateY(0);
}

.ofoq-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.ofoq-back-link:hover {
  color: #0b172a;
}

.ofoq-otp-input {
  text-align: center !important;
  direction: ltr !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 10px !important;
  height: 52px !important;
  padding: 8px 12px !important;
}

@media (max-width: 575px) {
  .portal-auth-main {
    padding: 16px 12px;
  }
  .ofoq-auth-card {
    border-radius: 16px;
    padding: 28px 20px;
    border-color: #e4e9f0;
    box-shadow: 0 8px 24px rgba(11, 23, 42, 0.04);
  }
}
