/* Fesarea authentication pages */
:root {
  --auth-primary: #0ea2bd;
  --auth-primary-dark: #087f96;
  --auth-secondary: #284b63;
  --auth-ink: #18212f;
  --auth-muted: #687586;
  --auth-line: #dfe7ee;
  --auth-soft: #f4f8fb;
  --auth-surface: #ffffff;
  --auth-danger: #dc3545;
  --auth-success: #168a63;
  --auth-shadow: 0 24px 70px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(135deg, rgba(14, 162, 189, 0.95), rgba(40, 75, 99, 0.96)),
    url("../img/hero-bg.jpg") center / cover no-repeat fixed;
  color: var(--auth-ink);
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  padding: 32px 16px;
}

.auth-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--auth-shadow);
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
}

.auth-shell.auth-shell-login {
  max-width: 960px;
}

.auth-brand-panel {
  background:
    linear-gradient(150deg, rgba(24, 33, 47, 0.94), rgba(40, 75, 99, 0.92)),
    url("../img/page-title-bg.jpg") center / cover no-repeat;
  color: #fff;
  min-height: 100%;
  padding: 44px;
}

.auth-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 850;
  gap: 12px;
  margin-bottom: 44px;
  text-decoration: none;
}

.auth-brand img {
  background: #fff;
  border-radius: 8px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  width: 42px;
}

.auth-brand:hover {
  color: #fff;
}

.auth-brand-panel h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.06;
  margin-bottom: 16px;
}

.auth-brand-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.auth-benefit {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.auth-benefit i {
  align-items: center;
  background: rgba(14, 162, 189, 0.22);
  border-radius: 8px;
  color: #7dd5e5;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.auth-benefit span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.auth-form-panel {
  background: var(--auth-surface);
  padding: 44px;
}

.auth-form-panel.auth-form-wide {
  padding: 42px;
}

.auth-top-link {
  align-items: center;
  color: var(--auth-muted);
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  margin-bottom: 26px;
  text-decoration: none;
}

.auth-top-link:hover {
  color: var(--auth-primary);
}

.auth-topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.auth-topbar .auth-top-link {
  margin-bottom: 0;
}

.auth-topbar .language-switcher {
  flex: 0 0 auto;
}

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

.auth-form-header .kicker {
  color: var(--auth-primary);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.auth-form-header h2 {
  color: var(--auth-ink);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.auth-form-header p {
  color: var(--auth-muted);
  margin: 0;
}

.auth-section {
  background: var(--auth-soft);
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 22px;
}

.auth-section-title {
  align-items: center;
  color: var(--auth-ink);
  display: flex;
  font-size: 1rem;
  font-weight: 850;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-section-title i {
  color: var(--auth-primary);
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  color: var(--auth-ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-field .form-control {
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  color: var(--auth-ink);
  min-height: 48px;
  padding: 0.72rem 0.9rem;
}

.auth-field textarea.form-control {
  min-height: 124px;
  resize: vertical;
}

.auth-field .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 162, 189, 0.14);
}

.auth-file {
  align-items: center;
  background: #fff;
  border: 1px dashed #bfd0db;
  border-radius: 8px;
  color: var(--auth-muted);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 124px;
  justify-content: center;
  padding: 18px;
  text-align: center;
  transition: 0.2s ease;
}

.auth-file:hover,
.auth-file.has-file {
  border-color: var(--auth-primary);
  color: var(--auth-primary);
}

.auth-file input {
  display: none;
}

.auth-actions {
  margin-top: 20px;
}

.auth-btn {
  align-items: center;
  background: var(--auth-primary);
  border: 1px solid var(--auth-primary);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(14, 162, 189, 0.22);
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  transition: 0.2s ease;
  width: 100%;
}

.auth-btn:hover {
  background: var(--auth-primary-dark);
  border-color: var(--auth-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.auth-secondary-link {
  color: var(--auth-primary);
  font-weight: 850;
  text-decoration: none;
}

.auth-secondary-link:hover {
  color: var(--auth-primary-dark);
}

.auth-bottom {
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  margin-top: 24px;
  padding-top: 22px;
  text-align: center;
}

.auth-alert {
  border: 0;
  border-left: 4px solid;
  border-radius: 8px;
}

.auth-alert.alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: var(--auth-danger);
  color: #9f1d2a;
}

.auth-alert.alert-success {
  background: rgba(22, 138, 99, 0.08);
  border-left-color: var(--auth-success);
  color: #0d684a;
}

.auth-mini-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.auth-mini-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
}

.auth-mini-stat strong {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.auth-mini-stat span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 0.82rem;
  margin-top: 7px;
}

[dir="rtl"] .auth-page {
  direction: rtl;
}

[dir="rtl"] .auth-alert {
  border-left: 0;
  border-right: 4px solid;
}

[dir="rtl"] .auth-topbar {
  direction: rtl;
}

[dir="rtl"] .auth-bottom,
[dir="rtl"] .auth-form-header,
[dir="rtl"] .auth-field,
[dir="rtl"] .auth-section-title,
[dir="rtl"] .auth-brand-panel {
  text-align: right;
}

[dir="rtl"] .auth-btn,
[dir="rtl"] .auth-brand,
[dir="rtl"] .auth-benefit,
[dir="rtl"] .auth-section-title,
[dir="rtl"] .auth-top-link {
  direction: rtl;
}

@media (max-width: 991px) {
  .auth-brand-panel,
  .auth-form-panel,
  .auth-form-panel.auth-form-wide {
    padding: 28px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-mini-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .auth-page {
    padding: 14px;
  }

  .auth-section {
    padding: 18px;
  }

  .auth-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
