/*
 * CrossJobs — accounts.css
 * Shared styles for account management pages (profile, alerts, resume, etc.)
 * and authentication pages (login, signup, password reset/change, etc.).
 * Loaded by base.html so both page families inherit these rules.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT PAGES — card component system
   ═══════════════════════════════════════════════════════════════════════════ */

.profile-card {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 1rem;
}

.profile-card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: .55rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #495057;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.profile-field { margin-bottom: .85rem; }
.profile-field:last-child { margin-bottom: 0; }

.profile-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6c757d;
  margin-bottom: .2rem;
  display: block;
}

.profile-value {
  font-size: .92rem;
  color: #212529;
  display: block;
  word-break: break-word;
}

.profile-value.empty {
  color: #adb5bd;
  font-style: italic;
}

/* ── Coloured inline badges ────────────────────────────────────────────── */

.profile-badge {
  display: inline-block;
  padding: .2em .65em;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 12px;
  background: #e8f0d4;
  color: #4a6b1a;
  white-space: nowrap;
}

.profile-badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.profile-badge-warning {
  background: #fff3cd;
  color: #856404;
}

.profile-badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* ── Profile avatar ────────────────────────────────────────────────────── */

.profile-avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e8f0d4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* ── Section header row (title + action button) ────────────────────────── */

.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.account-section-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

/* ── Generic account data table ────────────────────────────────────────── */

.account-table { font-size: .88rem; }
.account-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; }
.account-table td,
.account-table th { vertical-align: middle !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — login, signup, password management, activation
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card container for auth forms and confirmation messages */
.auth-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

/* Large icon shown above the form title */
.auth-icon {
  font-size: 2.25rem;
  color: #89ba16;
  display: block;
  text-align: center;
  margin-bottom: .6rem;
}

/* Form / page title inside the card */
.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Descriptive paragraph below the title */
.auth-description {
  font-size: .9rem;
  color: #6c757d;
  text-align: center;
  margin-top: -.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Link row at the bottom of the card */
.auth-links {
  text-align: center;
  font-size: .88rem;
  color: #6c757d;
  margin-top: 1rem;
}

.auth-links a {
  font-weight: 600;
  color: #89ba16;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Divider between auth-links lines */
.auth-links .auth-links-sep {
  margin: .35rem 0;
}

/* Success / info icon in confirmation cards */
.auth-result-icon {
  font-size: 3rem;
  display: block;
  text-align: center;
  margin-bottom: .75rem;
}

.auth-result-icon.success { color: #28a745; }
.auth-result-icon.danger  { color: #dc3545; }
.auth-result-icon.info    { color: #17a2b8; }
