/* ═══ AWU Auth Page — Modern Design ═══════════════════════════════════════ */

.awu-auth-page {
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: -32px -20px;
}

/* ── Left Branding Panel ── */
.awu-auth-left {
  flex: 0 0 420px;
  background: linear-gradient(145deg, #1a3d6e 0%, #2E75B6 60%, #3a8fd4 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.awu-auth-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.awu-auth-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.awu-auth-logo { margin-bottom: 40px; }
.awu-auth-logo-text {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(90deg,#fff,rgba(255,255,255,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.awu-auth-logo img { max-height: 48px; }
.awu-auth-panel-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.awu-auth-panel-sub { font-size: 15px; opacity: .8; line-height: 1.6; margin: 0 0 40px; }

.awu-auth-features { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.awu-auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.awu-af-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.awu-auth-feature strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.awu-auth-feature p { font-size: 13px; opacity: .7; margin: 0; }
.awu-auth-panel-footer a { color: rgba(255,255,255,.7); font-size: 13px; text-decoration: none; position: relative; z-index: 1; }
.awu-auth-panel-footer a:hover { color: #fff; }

/* ── Right Form Panel ── */
.awu-auth-right {
  flex: 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}
.awu-auth-form-wrap { width: 100%; max-width: 480px; }

/* ── Tabs ── */
.awu-auth-tabs {
  display: flex;
  background: #e8edf5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}
.awu-auth-tab {
  flex: 1; padding: 10px 0;
  border: none; background: transparent;
  border-radius: 9px; font-size: 14px; font-weight: 600;
  color: #6b7280; cursor: pointer;
  transition: all .2s;
}
.awu-auth-tab-active {
  background: #fff;
  color: #2E75B6;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Form Panel ── */
.awu-auth-form-panel { display: none; }
.awu-auth-panel-active { display: block; }
.awu-auth-form-header { margin-bottom: 24px; }
.awu-auth-form-header h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: #111827; }
.awu-auth-form-header p { font-size: 14px; color: #6b7280; margin: 0; }

/* ── Fields ── */
.awu-auth-field { margin-bottom: 18px; }
.awu-auth-field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px;
}
.awu-forgot-link { font-size: 12px; color: #2E75B6; text-decoration: none; font-weight: 500; }
.awu-forgot-link:hover { text-decoration: underline; }
.awu-auth-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.awu-auth-input-icon {
  position: absolute; left: 14px;
  font-size: 14px; pointer-events: none;
}
.awu-auth-input-wrap input {
  width: 100%; padding: 11px 16px 11px 40px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; color: #111827;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.awu-auth-input-wrap input:focus {
  border-color: #2E75B6;
  box-shadow: 0 0 0 3px rgba(46,117,182,.12);
  outline: none;
}
.awu-toggle-pw {
  position: absolute; right: 12px;
  background: none; border: none;
  cursor: pointer; font-size: 16px; padding: 0;
  opacity: .5; transition: opacity .15s;
}
.awu-toggle-pw:hover { opacity: 1; }

.awu-auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Password Strength ── */
.awu-pw-strength { margin-top: 8px; }
.awu-pw-bar { height: 4px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.awu-pw-fill { height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.awu-pw-fill.strength-weak { width: 25%; background: #dc2626; }
.awu-pw-fill.strength-fair { width: 50%; background: #f59e0b; }
.awu-pw-fill.strength-good { width: 75%; background: #3b82f6; }
.awu-pw-fill.strength-strong { width: 100%; background: #16a34a; }
#awu-pw-label { font-size: 11px; color: #9ca3af; }

/* ── Checkboxes ── */
.awu-auth-remember, .awu-auth-agree {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #4b5563; cursor: pointer; margin-bottom: 18px;
}
.awu-auth-remember input, .awu-auth-agree input { margin-top: 2px; accent-color: #2E75B6; }
.awu-auth-agree a { color: #2E75B6; }

/* ── Submit Button ── */
.awu-auth-submit-btn {
  width: 100%; padding: 13px 24px;
  background: linear-gradient(135deg, #2E75B6, #1a5490);
  color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .2s; box-shadow: 0 4px 14px rgba(46,117,182,.35);
  display: block;
}
.awu-auth-submit-btn:hover {
  background: linear-gradient(135deg, #1a5490, #113d6e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,117,182,.45);
}
.awu-auth-submit-btn:active { transform: translateY(0); }

/* ── Switch Link ── */
.awu-auth-switch { text-align: center; font-size: 13px; color: #6b7280; margin-top: 20px; }
.awu-auth-switch-btn {
  background: none; border: none;
  color: #2E75B6; font-weight: 600; cursor: pointer; font-size: 13px;
  padding: 0;
}
.awu-auth-switch-btn:hover { text-decoration: underline; }

/* ── Auth Messages ── */
.awu-auth-message {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.awu-auth-message.awu-msg-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.awu-auth-message.awu-msg-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── Approval Note ── */
.awu-auth-approval-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 10px; padding: 12px 14px; margin-top: 16px;
}
.awu-auth-approval-note p { font-size: 12px; color: #1d4ed8; margin: 0; line-height: 1.5; }

/* ── Success State ── */
.awu-auth-success-state { text-align: center; padding: 24px 0; }
.awu-auth-success-icon { font-size: 60px; margin-bottom: 16px; }
.awu-auth-success-state h2 { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.awu-auth-success-state p { font-size: 14px; color: #6b7280; margin: 0 0 28px; line-height: 1.6; }
.awu-auth-success-steps { display: flex; gap: 8px; margin-bottom: 28px; justify-content: center; flex-wrap: wrap; }
.awu-success-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #9ca3af; padding: 6px 12px;
  background: #f3f4f6; border-radius: 20px; font-weight: 500;
}
.awu-ss-done { background: #f0fdf4; color: #16a34a; }
.awu-ss-pending { background: #eff6ff; color: #2E75B6; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .awu-auth-left { display: none; }
  .awu-auth-right { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .awu-auth-row-2 { grid-template-columns: 1fr; }
  .awu-auth-right { padding: 24px 16px; }
  .awu-auth-form-wrap { max-width: 100%; }
}
