:root {
  --primary-color: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #e8f0fe;
  --text-main: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --bg-main: #ffffff;
  --bg-sidebar: #f6f8fc;
  --bg-hover: #f1f3f4;
  --border-color: #dadce0;
  --star-gold: #f4b400;
  --danger-color: #d93025;
  --success-color: #188038;
  --warning-color: #f29900;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* TOP APP BAR */
.app-header {
  height: 64px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  border-radius: 8px;
}

.header-search {
  flex: 1;
  max-width: 720px;
  margin: 0 24px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #f1f3f4;
  border-radius: 24px;
  padding: 0 16px;
  height: 46px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text-main);
  margin: 0 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.domain-pill:hover {
  background-color: #d2e3fc;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* APP BODY */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* SIDEBAR */
.app-sidebar {
  width: 256px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex-shrink: 0;
}

.compose-btn-wrapper {
  margin-bottom: 16px;
}

.compose-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #c2e7ff;
  color: #001d35;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, background-color 0.2s;
  width: 100%;
}

.compose-btn:hover {
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  background-color: #b3def7;
}

.folder-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.folder-item:hover {
  background-color: #eaebef;
}

.folder-item.active {
  background-color: #d3e3fd;
  color: #041e49;
  font-weight: 600;
}

.folder-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-badge {
  font-size: 12px;
  background-color: transparent;
  color: var(--text-secondary);
  font-weight: 600;
}

.folder-item.active .folder-badge {
  color: #041e49;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.dns-status-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dns-status-card:hover {
  border-color: var(--primary-color);
}

/* MAIN CONTENT AREA */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* TOOLBAR */
.mail-toolbar {
  height: 48px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #ffffff;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill.active {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* EMAIL LIST */
.mail-list-container {
  flex: 1;
  overflow-y: auto;
}

.mail-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.1s, box-shadow 0.1s;
  position: relative;
}

.mail-item:hover {
  background-color: #f7f9fa;
  box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,0.3);
  z-index: 2;
}

.mail-item.unread {
  background-color: #ffffff;
  font-weight: 700;
  color: #202124;
}

.mail-item.read {
  background-color: #f8f9fa;
  color: #5f6368;
}

.mail-item.read .mail-sender {
  font-weight: 500;
  color: #202124;
}

.mail-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.star-btn.starred {
  color: var(--star-gold);
}

.mail-sender {
  min-width: 180px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 16px;
}

.mail-content-preview {
  flex: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 6px;
  min-width: 0;
}

.mail-subject {
  color: var(--text-main);
  white-space: nowrap;
}

.mail-snippet {
  color: var(--text-secondary);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 90px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-secondary);
}

.mail-hover-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.mail-item:hover .mail-hover-actions {
  display: flex;
}

.mail-item:hover .mail-date-label {
  display: none;
}

/* EMAIL READING VIEW */
.mail-view-container {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 32px;
  background-color: #ffffff;
}

.view-header {
  margin-bottom: 24px;
}

.view-subject-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sender-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sender-info-box {
  display: flex;
  gap: 14px;
}

.sender-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.sender-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sender-name-full {
  font-weight: 600;
  font-size: 15px;
}

.sender-email-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.mail-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: #e6f4ea;
  color: var(--success-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 500;
}

.view-body-html {
  line-height: 1.6;
  font-size: 14px;
  color: var(--text-main);
  margin: 24px 0;
  border-top: 1px solid #f1f3f4;
  padding-top: 20px;
}

.view-attachments-box {
  margin: 24px 0;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 4px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.attachment-chip:hover {
  background-color: #f1f3f4;
}

.view-reply-box {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-top: 32px;
  background: #ffffff;
}

/* FLOATING COMPOSE MODAL (Gmail-style) */
.compose-modal {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 580px;
  height: 600px;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 100;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.compose-header {
  height: 44px;
  background: #f2f6fc;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #dadce0;
}

.compose-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.compose-controls {
  display: flex;
  gap: 4px;
}

.compose-field-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f3f4;
  padding: 6px 16px;
}

.compose-field-label {
  font-size: 13px;
  color: var(--text-secondary);
  width: 50px;
}

.compose-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
}

.compose-editor-area {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
}

.compose-editor-area[contenteditable]:empty:before {
  content: attr(placeholder);
  color: var(--text-muted);
}

.compose-toolbar {
  height: 48px;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.format-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-send {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-send:hover {
  background-color: var(--primary-hover);
}

/* SETTINGS MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.settings-modal-card {
  width: 720px;
  max-width: 90vw;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8f9fa;
  padding: 0 24px;
}

.tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.settings-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.dns-results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.dns-results-table th, .dns-results-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.dns-results-table th {
  background: #f8f9fa;
}

.badge-pass {
  background: #e6f4ea;
  color: #137333;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.badge-missing {
  background: #fce8e6;
  color: #c5221f;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.settings-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

.btn-secondary {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.6;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #323232;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================================================
   AUTHENTICATION & REGISTRATION SCREEN (Premium Lami Aurora Style)
   =================================================== */
.auth-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.1) 0%, transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow: hidden;
}

/* Ambient Animated Aurora Layer */
.auth-ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.auth-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.12) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

.auth-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #38bdf8 0%, #6366f1 70%, transparent 100%);
  top: -120px;
  left: -100px;
  animation: floatOrb1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #c084fc 0%, #4f46e5 70%, transparent 100%);
  top: -80px;
  right: -120px;
  animation: floatOrb2 24s ease-in-out infinite alternate;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #06b6d4 0%, #2563eb 70%, transparent 100%);
  bottom: -100px;
  left: 15%;
  animation: floatOrb3 22s ease-in-out infinite alternate;
}

.orb-4 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #818cf8 0%, #9333ea 70%, transparent 100%);
  bottom: -90px;
  right: 12%;
  animation: floatOrb1 26s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 35px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.06); }
  100% { transform: translate(35px, -30px) scale(0.96); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -45px) scale(1.1); }
  100% { transform: translate(-40px, -20px) scale(0.92); }
}

/* Floating Glassmorphic Badges */
.auth-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.2px;
  user-select: none;
}

.badge-top-left {
  top: 40px;
  left: 50px;
  animation: floatBadge 8s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 40px;
  right: 50px;
  animation: floatBadge 9s ease-in-out infinite alternate-reverse;
}

.badge-bottom-right {
  bottom: 40px;
  right: 50px;
  animation: floatBadge 10s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .auth-floating-badge {
    display: none;
  }
}

/* Frosted Glassmorphic Auth Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 
    0 24px 60px -12px rgba(15, 23, 42, 0.16),
    0 8px 24px -4px rgba(79, 70, 229, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.auth-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #747775;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.auth-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.username-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #747775;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.username-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.username-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

.domain-suffix-badge {
  background: #f1f3f4;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 14px;
  border-left: 1px solid #dadce0;
  user-select: none;
}

.username-input-wrapper.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.username-input-wrapper.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.username-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.username-feedback.error {
  color: #dc2626;
}

.username-feedback.success {
  color: #16a34a;
}

.auth-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.auth-input.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.field-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.field-feedback.error {
  color: #dc2626;
}

.field-feedback.success {
  color: #16a34a;
}

.auth-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.auth-input.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.field-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.field-feedback.error {
  color: #dc2626;
}

.field-feedback.success {
  color: #16a34a;
}

.username-input-wrapper.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.username-input-wrapper.is-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15) !important;
}

.username-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.username-feedback.error {
  color: #dc2626;
}

.username-feedback.success {
  color: #16a34a;
}

.auth-btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.auth-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.auth-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f3f4;
  font-size: 14px;
}

.auth-switch-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* User Profile Menu in Header */
.user-menu-container {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: none;
  flex-direction: column;
  z-index: 500;
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-logout:hover {
  background: #f1f3f4;
  color: var(--danger-color);
}

/* Custom Vector Logo & Auth Banners */
.auth-brand-logo-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-brand-logo-custom:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.brand-logo-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-custom:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1e293b;
}

.auth-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}


