/* ================================================================
   auth.css — Full-Width & Centered SaaS Login Design
   ================================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

.erp-auth-page {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
}

.erp-auth-card-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-width: 100%;
  background: #ffffff;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

/* ── LEFT PANEL — Full Height 3D Illustration Panel ── */
.erp-auth-panel-left {
  flex: 0 0 50%;
  height: 100vh;
  min-height: 100vh;
  background: #c084fc;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-illustration-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.erp-illustration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── RIGHT PANEL — Form Panel ── */
.erp-auth-panel-right {
  flex: 0 0 50%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: #ffffff;
  position: relative;
  overflow-y: auto;
}

.erp-auth-top-nav {
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
}

.erp-register-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

.erp-register-link:hover {
  text-decoration: underline;
}

/* Centered Form Wrapper Box */
.erp-auth-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.erp-auth-heading {
  text-align: center;
  margin-bottom: 32px;
}

.erp-auth-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.erp-auth-sub {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Form Container */
#loginForm {
  width: 100%;
}

/* Form Fields */
.erp-field {
  margin-bottom: 20px;
}

.erp-field-row {
  display: flex;
  gap: 14px;
}

.erp-field-row .erp-field {
  flex: 1;
}

.erp-input-wrap {
  position: relative;
  width: 100%;
}

.erp-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.erp-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.erp-input:focus {
  background: #ffffff;
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.erp-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.erp-input-wrap--has-eye .erp-input {
  padding-right: 52px;
}

.erp-eye-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.erp-eye-btn:hover {
  color: #475569;
}

.erp-forgot-link {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.erp-forgot-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* Submit Button */
.erp-btn-cta,
#loginBtn {
  width: 100% !important;
  padding: 16px !important;
  margin-top: 18px !important;
  background: #ff5252 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(255, 82, 82, 0.35) !important;
  transition: all 0.2s ease !important;
}

.erp-btn-cta:hover,
#loginBtn:hover {
  background: #ff3838 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(255, 82, 82, 0.45) !important;
}

.erp-btn-cta:active {
  transform: translateY(0);
}

/* Social Divider */
.erp-social-divider {
  text-align: center;
  margin: 32px 0 20px 0;
  position: relative;
  width: 100%;
}

.erp-social-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  z-index: 1;
}

.erp-social-divider span {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 16px;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Social Buttons */
.erp-social-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.erp-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 50px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.erp-social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* Alert Boxes */
.erp-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: 100%;
}

.erp-alert--danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.erp-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 992px) {
  .erp-auth-card-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .erp-auth-panel-left {
    flex: none;
    width: 100%;
    height: 320px;
    min-height: auto;
  }

  .erp-auth-panel-right {
    flex: none;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 3rem 2rem;
  }

  .erp-auth-top-nav {
    position: static;
    text-align: right;
    margin-bottom: 20px;
  }

  .erp-auth-box {
    max-width: 100%;
  }
}
