/* ================================================
   assets/css/auth.css — Premium Editorial Auth
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #050505;
  --navy: #050505;
  --navy2: rgba(20, 20, 22, 0.6);
  --navy3: rgba(255, 255, 255, 0.03);
  --gold: #c6a855;
  --gold2: #e8c96a;
  --text: #ffffff;
  --muted: #8b8b93;
  --danger: #e74c3c;
  --success: #27ae60;
  --info: #2980b9;
  --radius: 16px;
  --border-glass: rgba(255, 255, 255, 0.05);
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--bg-base);
  min-height: 100vh;
  color: var(--text);
  display: flex;
  overflow-x: hidden;
  position: relative;
}


/* Base structural for dual-panel (Login, Register) */
.auth-panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.auth-panel-left::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(198, 168, 85, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  filter: blur(80px);
  animation: glow 8s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-30px, 30px);
  }
}


.auth-panel-right {
  width: 480px;
  min-width: 480px;
  background: var(--navy2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  z-index: 2;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

/* Complete Profile (Single card) */
.profile-card {
  background: var(--navy2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 440px;
  max-width: 95%;
  padding: 48px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  margin: auto;
}

/* Brand and Logo (Left Panel) */
.brand-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 420px;
}

.brand-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(198, 168, 85, 0.15), transparent);
  border: 1px solid rgba(198, 168, 85, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--gold);
  margin: 0 auto 32px;
  box-shadow: 0 0 40px rgba(198, 168, 85, 0.1);
}

.brand-name {
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 300;
}

.brand-features,
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

.brand-feature,
.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 20px;
  transition: transform 0.3s, background 0.3s;
}

.brand-feature:hover,
.step-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-4px);
}

.brand-feature i {
  color: var(--gold);
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.brand-feature span {
  font-size: 15px;
  color: var(--text);
  font-weight: 300;
}

.step-num {
  min-width: 32px;
  height: 32px;
  background: rgba(198, 168, 85, 0.1);
  color: var(--gold);
  border: 1px solid rgba(198, 168, 85, 0.2);
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Headings */
.form-logo,
.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-logo-icon,
.profile-icon {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 16px;
}

.profile-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(198, 168, 85, .15), transparent);
  border: 1px solid rgba(198, 168, 85, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-logo h1,
.profile-header h1 {
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
}

.form-logo p,
.profile-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 300;
}

/* Alerts */
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

.alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-error {
  background: rgba(231, 76, 60, 0.05);
  border-color: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
}

.alert-info {
  background: rgba(41, 128, 185, 0.05);
  border-color: rgba(41, 128, 185, 0.2);
  color: #74b9ff;
}

.alert-success {
  background: rgba(39, 174, 96, 0.05);
  border-color: rgba(39, 174, 96, 0.2);
  color: #55efc4;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group input,
.phone-row .phone-input input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.phone-row .phone-input input:focus {
  border-color: rgba(198, 168, 85, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.input-icon-wrap,
.pw-wrap {
  position: relative;
}

.input-icon-wrap input,
.pw-wrap input {
  padding-right: 48px;
}

.pw-wrap input {
  padding-left: 48px;
}

.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.pw-toggle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: color .2s;
  padding: 4px;
}

.pw-toggle:hover {
  color: var(--gold);
}

/* Custom Select (for phone code) */
.custom-select-wrap {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: all 0.3s;
}

.custom-select-trigger:hover,
.custom-select-wrap.open .custom-select-trigger {
  border-color: rgba(198, 168, 85, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger .code {
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
}

.custom-select-trigger .cname {
  flex: 1;
  font-weight: 300;
}

.custom-select-trigger .arrow {
  color: var(--muted);
  font-size: 11px;
  transition: transform .2s;
}

.custom-select-wrap.open .arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  max-height: 250px;
  flex-direction: column;
}

.custom-select-wrap.open .custom-select-dropdown {
  display: flex;
}

.cs-search {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-search input {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
  padding: 4px;
}

.cs-list {
  overflow-y: auto;
  max-height: 190px;
}

.cs-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
  font-weight: 300;
}

.cs-option:hover,
.cs-option.selected {
  background: rgba(255, 255, 255, 0.05);
}

.cs-option .flag .fi,
#csFlag .fi {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.cs-option .code {
  color: var(--gold);
  font-weight: 500;
  font-size: 13px;
  min-width: 44px;
}

.phone-row {
  display: flex;
  gap: 12px;
}

.phone-row .custom-select-wrap {
  flex: 0 0 170px;
}

.phone-row .phone-input {
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
  font-size: 12px;
}

.custom-checkbox input:checked~.checkmark {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.checkbox-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.checkbox-text a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-submit,
.btn-primary {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  text-decoration: none;
}

.btn-submit:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  background: #f0f0f0;
}

.btn-outline-gold,
.btn-outline {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(198, 168, 85, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-outline-gold:hover,
.btn-outline:hover {
  background: rgba(198, 168, 85, 0.05);
  border-color: rgba(198, 168, 85, 0.6);
}

/* Social Login */
.social-login-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.2);
}

.social-login-separator::before,
.social-login-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-login-separator span {
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-google {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.btn-google img {
  width: 20px;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Links */
.form-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  transition: color 0.2s;
}

.form-links a strong {
  color: #fff;
  font-weight: 500;
}

.form-links a:hover,
.form-links a:hover strong {
  color: var(--gold);
}

.admin-link {
  color: rgba(255, 255, 255, 0.2) !important;
  font-size: 12px !important;
  margin-top: 16px;
}

.admin-link:hover {
  color: #fff !important;
}

.info-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.6;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
  .auth-panel-left {
    display: none;
  }

  .auth-panel-right {
    width: 100%;
    min-width: 0;
    border-right: none;
  }
}

@media (max-width: 500px) {

  .auth-panel-right,
  .profile-card {
    padding: 40px 24px;
  }

  .form-row,
  .phone-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .phone-row .custom-select-wrap {
    flex: auto;
  }
}