/* ===== ACCOUNT.CSS — WordPress Version ===== */

/* ── Main Layout ── */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 5% 60px;
  position: relative;
  background: #f9fafb;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.auth-bg-blob--1 {
  width: 500px;
  height: 500px;
  background: rgba(200, 16, 46, 0.12);
  top: -120px;
  right: -120px;
}

.auth-bg-blob--2 {
  width: 400px;
  height: 400px;
  background: rgba(200, 16, 46, 0.07);
  bottom: -100px;
  left: -100px;
}

/* ── Container ── */
.auth-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
}

/* ── Card ── */
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  background: var(--gray-100, #f3f4f6);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-500, #6b7280);
  text-decoration: none;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--red, #C8102E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab:hover:not(.active) {
  color: var(--red, #C8102E);
}

/* ── Card Head ── */
.auth-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-card-head h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gray-900, #111827);
}

.auth-card-head p {
  font-size: 0.85rem;
  color: var(--gray-400, #9ca3af);
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
	margin:15px 0px !important;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700, #374151);
}

.auth-field label span {
  color: var(--red, #C8102E);
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-forgot-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red, #C8102E);
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* ── Input Wrap ── */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  right: 12px;
  color: var(--gray-400, #9ca3af);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.auth-input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 40px !important;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-800, #1f2937);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* اگه toggle-pass نیست، padding چپ کم بشه */
.auth-input-wrap:not(:has(.auth-toggle-pass)) input {
  padding-left: 31px;
  padding-right: 30px;
}

.auth-input-wrap input:focus {
  border-color: var(--red, #C8102E);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.auth-input-wrap input.error {
  border-color: #e53e3e;
}

.auth-input-wrap input::placeholder {
  color: var(--gray-400, #9ca3af);
}

.auth-toggle-pass {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}

.auth-toggle-pass:hover {
  color: var(--gray-700, #374151);
}

/* ── Error ── */
.auth-err {
  font-size: 0.75rem;
  color: #e53e3e;
  min-height: 16px;
}

/* ── Checkbox ── */
.auth-remember-row {
  margin-top: -4px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--gray-600, #4b5563);
  font-weight: 600;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  display: none;
}

.auth-checkbox-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300, #d1d5db);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.auth-checkbox-label input:checked+.auth-checkbox-box {
  background: var(--red, #C8102E);
  border-color: var(--red, #C8102E);
}

.auth-checkbox-label input:checked+.auth-checkbox-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* ── Password Strength ── */
.auth-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.auth-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Submit Button ── */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--red, #C8102E);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.30);
  text-decoration: none;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: #9b0b22;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.40);
}

.auth-submit-btn.loading {
  pointer-events: none;
  opacity: 0.75;
}

/* ── WP Notices ── */
.auth-msg {
  font-size: 0.82rem;
  text-align: center;
  border-radius: 10px;
  min-height: 0;
  transition: all 0.3s ease;
}

.auth-msg.success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
}

.auth-msg.error {
  background: #fff2f3;
  color: #e53e3e;
  padding: 12px 16px;
  border: 1px solid #fecaca;
}

.wp-login-error {
  background: #fff2f3;
  color: #e53e3e;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: center;
}

.wp-login-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: center;
}

/* ── Card Footer ── */
.auth-card-footer {
  font-size: 0.82rem;
  color: var(--gray-500, #6b7280);
  font-weight: 600;
  text-align: center;
  padding-top: 4px;
}

.auth-card-footer a {
  color: var(--red, #C8102E);
  font-weight: 700;
  text-decoration: none;
  margin-right: 4px;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}

.auth-link {
  color: var(--red, #C8102E);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ── Form Row ── */
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .auth-main {
    padding: 80px 4% 40px;
    align-items: flex-start;
  }
}