/* ============================================================
   GTEXPORTS ERP — Shared Auth UI Styles
   Used by: login.html, forgot_password.html, verify_otp.html,
            reset_password.html
   ============================================================ */

:root {
  --brand-primary: #0b6efd;
  --brand-primary-dark: #0a58ca;
  --brand-primary-light: #e8f1ff;
  --brand-navy: #0f1b3d;
  --text-dark: #1c2333;
  --text-muted: #6b7280;
  --border-color: #e2e6ee;
  --danger: #e53e3e;
  --danger-bg: #fdecec;
  --success: #16a34a;
  --success-bg: #eafaf0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 20px 45px rgba(15, 27, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, #e7873b 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #215675 0%, transparent 40%),
    linear-gradient(160deg, #215675 0%, #215675 45%, #e7873b 100%) !important;

  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Decorative background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---------- Left brand / info panel ---------- */
.auth-brand-panel {
  background: linear-gradient(155deg, #215675 0%, #215675 45%, #e7873b 100%);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -80px;
  bottom: -80px;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  left: -60px;
  top: -40px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand-copy h1 {
  font-size: 26px;
  line-height: 1.35;
  margin: 24px 0 12px;
  font-weight: 700;
}

.brand-copy p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

.brand-feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

.brand-feature-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cc4ff;
  flex-shrink: 0;
}

.brand-footer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

/* ---------- Right form panel ---------- */
.auth-form-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 28px;
}

.form-header .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.form-header h2 {
  margin: 0 0 6px;
  font-size: 23px;
  color: var(--text-dark);
  font-weight: 700;
}

.form-header p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-header p strong {
  color: var(--text-dark);
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(229, 62, 62, 0.25);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

/* Form elements */
.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .icon {
  position: absolute;
  left: 14px;
  color: #9aa4b5;
  font-size: 15px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--text-dark);
  background: #fafbfc;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.input-wrap input::placeholder {
  color: #a7aebb;
}

.input-wrap input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 110, 253, 0.12);
}

.input-wrap .toggle-visibility {
  position: absolute;
  right: 14px;
  color: #9aa4b5;
  cursor: pointer;
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
}

/* OTP input group */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.otp-group input {
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 0;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fafbfc;
  color: var(--text-dark);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.otp-group input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 110, 253, 0.12);
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.password-rules {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.password-rules li {
  margin-bottom: 2px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 18px;
  font-size: 12.5px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.remember-me input {
  width: auto;
  margin: 0;
}

.link-forgot,
.link-back {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.link-forgot:hover,
.link-back:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-dark)
  );
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition:
    filter 0.15s ease,
    transform 0.05s ease;
  box-shadow: 0 8px 18px rgba(11, 110, 253, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

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

.btn-secondary-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-secondary-link a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary-link a:hover {
  text-decoration: underline;
}

.back-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.back-step:hover {
  color: var(--brand-primary);
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.resend-row button {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.resend-row button:disabled {
  color: #b7bfcc;
  cursor: not-allowed;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.progress-steps .seg {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--border-color);
}

.progress-steps .seg.active {
  background: var(--brand-primary);
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 38px 28px;
  }
}
.admin-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.admin-link:hover {
  text-decoration: underline;
}
/* ============================================================
   GTEXPORTS ERP — Employee Email Management
   ============================================================ */

.admin-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.admin-link:hover {
  text-decoration: underline;
}

/* Employee email page */
.employee-email-page {
  width: 100%;
}

/* Employee email information text */
.employee-email-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* Success message */
.employee-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Error message */
.employee-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(229, 62, 62, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Admin-only notice */
.admin-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  justify-content: center;
  margin-top: 18px;
}

/* ============================================================
   Mobile responsive alignment
   ============================================================ */

@media (max-width: 820px) {
  body {
    padding: 12px;
    align-items: flex-start;
  }

  .auth-shell {
    width: 100%;
    max-width: 430px;
    margin: 20px auto;
    display: block;
    border-radius: var(--radius-lg);
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    width: 100%;
    padding: 36px 26px;
  }

  .form-header {
    margin-bottom: 24px;
  }

  .form-header h2 {
    font-size: 22px;
  }

  .form-header p {
    font-size: 13.5px;
  }

  .field-group {
    margin-bottom: 17px;
  }

  .input-wrap input {
    width: 100%;
    min-height: 48px;
  }

  .btn-primary {
    min-height: 48px;
  }

  .back-step {
    margin-bottom: 18px;
  }
}
