/*
  AUTH — Masaba × FlyingMinds
  Dark sidebar + warm cream form. Google SSO is king.
*/

/* ===== RESET FOR AUTH PAGES ===== */
.auth-page-wrap {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: #fdf6e8;
}

/* ===== COLOR STRIP ===== */
.auth-strip {
  height: 5px;
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}
.auth-strip i { flex: 1; display: block; font-style: normal; }
.auth-strip i:nth-child(1) { background: #E8195A; }
.auth-strip i:nth-child(2) { background: #00897B; }
.auth-strip i:nth-child(3) { background: #FFD600; }
.auth-strip i:nth-child(4) { background: #1E88E5; }
.auth-strip i:nth-child(5) { background: #FF6D00; }

/* ===== SPLIT LAYOUT ===== */
.ax {
  display: flex;
  min-height: 100vh;
  padding-top: 5px;
}

/* ===== SIDEBAR (dark ink) ===== */
.ax-side {
  width: 420px;
  flex-shrink: 0;
  background: #1A1208;
  color: #fdf6e8;
  padding: 56px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ax-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' opacity='.15'%3E%3Ccircle cx='20' cy='20' r='5' stroke='%23FCC162' stroke-width='1'/%3E%3Cpath d='M80 15c0 0-3-4-3-4s3-4 3-4s3 4 3 4s-3 4-3 4z' fill='%23E8195A'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%2300897B'/%3E%3Cpath d='M20 90 Q25 85 30 90' stroke='%23FCC162' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='80' r='5' stroke='%23E8195A' stroke-width='1'/%3E%3Cpath d='M90 40c0 0-2-3-2-3s2-3 2-3s2 3 2 3s-2 3-2 3z' fill='%23FCC162'/%3E%3Ccircle cx='40' cy='100' r='2' fill='%23E8195A'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ax-side-inner {
  position: relative;
  z-index: 1;
}

/* Logo in sidebar */
.ax-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fdf6e8;
  margin-bottom: 48px;
}
.ax-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #FCC162;
}
.ax-logo b {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}

/* Sidebar headline */
.ax-side-h {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ax-side-h .g { color: #FCC162; }
.ax-side-h .p { color: #E8195A; font-style: italic; }
.ax-side-sub {
  color: rgba(253,246,232,0.55);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Feature list */
.ax-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  animation: axFeatIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.ax-feat:nth-child(2) { animation-delay: 0.08s; }
.ax-feat:nth-child(3) { animation-delay: 0.16s; }
.ax-feat:nth-child(4) { animation-delay: 0.24s; }
.ax-feat:nth-child(5) { animation-delay: 0.32s; }

@keyframes axFeatIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.ax-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(252,193,98,0.12);
  border: 1px solid rgba(252,193,98,0.15);
}
.ax-feat-icon.ic-pink { background: rgba(232,25,90,0.12); border-color: rgba(232,25,90,0.15); }
.ax-feat-icon.ic-teal { background: rgba(0,137,123,0.15); border-color: rgba(0,137,123,0.2); }

.ax-feat h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fdf6e8;
  margin-bottom: 2px;
}
.ax-feat p {
  font-size: 13px;
  color: rgba(253,246,232,0.5);
  line-height: 1.4;
}

/* Sidebar tagline */
.ax-tag {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(252,193,98,0.08);
  border: 1.5px solid rgba(252,193,98,0.18);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(253,246,232,0.8);
}
.ax-tag .tp { color: #E8195A; font-family: 'Fraunces', serif; font-style: italic; }
.ax-tag .tg { color: #FCC162; }

/* ===== MAIN FORM AREA ===== */
.ax-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  background: #fdf6e8;
}
.ax-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' opacity='.25'%3E%3Ccircle cx='20' cy='20' r='6' stroke='%23E91E63' stroke-width='1' opacity='.15'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23E91E63' opacity='.1'/%3E%3Cpath d='M100 18c0 0-3-4-3-4s3-4 3-4s3 4 3 4s-3 4-3 4z' fill='%23FFD600' opacity='.12'/%3E%3Cpath d='M60 80c0 0-3-4-3-4s3-4 3-4s3 4 3 4s-3 4-3 4z' fill='%2300897B' opacity='.1'/%3E%3Cpath d='M30 130 Q35 125 40 130' stroke='%23E91E63' stroke-width='1.5' opacity='.1' fill='none'/%3E%3Ccircle cx='80' cy='140' r='6' stroke='%23E91E63' stroke-width='1' opacity='.08'/%3E%3Ccircle cx='140' cy='60' r='6' stroke='%2300897B' stroke-width='1' opacity='.08'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== CARD ===== */
.ax-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 2.5px solid #1A1208;
  border-radius: 18px;
  padding: 40px 36px 36px;
  box-shadow: 5px 5px 0 #1A1208;
  position: relative;
  z-index: 1;
  animation: axCardUp 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
.ax-card.ax-card-wide {
  max-width: 500px;
}

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

/* Card header */
.ax-card-head {
  text-align: center;
  margin-bottom: 28px;
}
.ax-card-head .ax-fred {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #FCC162;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 3px 10px rgba(252,193,98,0.25);
}
.ax-card-head h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1A1208;
  margin: 0 0 4px;
}
.ax-card-head .ax-sub {
  font-size: 14px;
  color: #8a7a5a;
}

/* ===== GOOGLE SSO ===== */
.ax-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid #1A1208;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: #1A1208;
  text-decoration: none;
  box-shadow: 4px 4px 0 #FCC162;
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1);
  margin-bottom: 6px;
}
.ax-google:hover {
  box-shadow: 4px 4px 0 #E8195A;
  border-color: #E8195A;
  transform: translate(-1px, -1px);
}
.ax-google:active {
  box-shadow: 2px 2px 0 #E8195A;
  transform: translate(1px, 1px);
}
.ax-google svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.ax-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 18px;
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ax-or::before,
.ax-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8dcc8;
}

/* ===== FIELDS ===== */
.ax-f {
  margin-bottom: 14px;
}
.ax-f label {
  display: block;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a7a5a;
  margin-bottom: 5px;
}
.ax-f label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #bbb;
}
.ax-f input,
.ax-f select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #e8dcc8;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #1A1208;
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
.ax-f input:focus,
.ax-f select:focus {
  outline: none;
  border-color: #E8195A;
  box-shadow: 0 0 0 3px rgba(232,25,90,0.06);
}
.ax-f input::placeholder { color: #ccc; }
.ax-f input[readonly] {
  background: #f9f5eb;
  color: #8a7a5a;
  cursor: default;
}
.ax-f .hint {
  font-size: 11px;
  color: #bbb;
  margin-top: 3px;
}

/* Row of two fields */
.ax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ===== FORGOT ROW ===== */
.ax-forgot {
  display: flex;
  justify-content: space-between;
  margin: -4px 0 8px;
}
.ax-forgot a {
  font-size: 12px;
  font-weight: 500;
  color: #00897B;
  text-decoration: none;
}
.ax-forgot a:hover { text-decoration: underline; }

/* ===== SUBMIT ===== */
.ax-btn {
  width: 100%;
  padding: 14px;
  background: #1A1208;
  color: #fdf6e8;
  border: 2px solid #1A1208;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.12s;
  box-shadow: 0 2px 8px rgba(26,18,8,0.15);
}
.ax-btn:hover {
  background: #E8195A;
  border-color: #E8195A;
  box-shadow: 0 4px 16px rgba(232,25,90,0.2);
  transform: translateY(-1px);
}
.ax-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(232,25,90,0.15);
}

/* ===== FOOTER LINKS ===== */
.ax-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #8a7a5a;
}
.ax-foot a {
  color: #E8195A;
  font-weight: 700;
  text-decoration: none;
}
.ax-foot a:hover { text-decoration: underline; }

/* ===== ERROR ===== */
.ax-err {
  background: #FFF0F3;
  border-left: 4px solid #E8195A;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #9B1B30;
}

/* ===== INVITE BANNER ===== */
.ax-invite {
  background: #E8F5E9;
  border: 1.5px solid #81C784;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #2E7D32;
  font-weight: 600;
}

/* ===== TRUST ===== */
.ax-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,137,123,0.06);
  border: 1.5px solid rgba(0,137,123,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #00695C;
  font-weight: 500;
}
.ax-trust b { color: #00897B; font-size: 15px; }

/* ===== ROLE SELECTOR ===== */
.ax-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ax-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid #e8dcc8;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.12s;
  color: #1A1208;
}
.ax-role:hover { border-color: #E8195A; }
.ax-role:has(input:checked) {
  border-color: #E8195A;
  background: #FFF0F3;
  box-shadow: 0 0 0 3px rgba(232,25,90,0.06);
}
.ax-role input[type="radio"] {
  accent-color: #E8195A;
  width: 15px;
  height: 15px;
}

/* ===== TERMS ===== */
.ax-terms {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin-top: 8px;
}

/* ===== MOBILE HEADER (replaces sidebar on small screens) ===== */
.ax-mobile-head {
  display: none; /* hidden on desktop */
  background: #1A1208;
  padding: 20px 20px 18px;
  text-align: center;
}
.ax-mobile-head .ax-mh-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; color: #fdf6e8;
  margin-bottom: 12px;
}
.ax-mobile-head .ax-mh-logo img {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #FCC162;
}
.ax-mobile-head .ax-mh-logo b {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; font-style: italic;
}
.ax-mobile-head h1 {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900;
  color: #fdf6e8; line-height: 1.2; margin-bottom: 10px;
}
.ax-mobile-head h1 .g { color: #FCC162; }
.ax-mobile-head h1 .p { color: #E8195A; font-style: italic; }
.ax-mobile-trust {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ax-mobile-trust span {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: rgba(253,246,232,0.55);
}
.ax-mobile-trust span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #00897B; flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ax { flex-direction: column; }

  /* Hide the full sidebar on mobile — show compact header instead */
  .ax-side { display: none; }
  .ax-mobile-head { display: block; }

  .ax-main {
    padding: 24px 16px;
    min-height: calc(100vh - 120px);
  }
  .ax-card {
    padding: 28px 22px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #1A1208;
    max-width: 100%;
  }
  .ax-card.ax-card-wide { max-width: 100%; }
}

@media (max-width: 480px) {
  .ax-card {
    padding: 24px 18px;
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 3px 3px 0 #1A1208;
  }
  .ax-card-head h2 { font-size: 22px; }
  .ax-card-head .ax-fred { width: 44px; height: 44px; }
  .ax-google {
    padding: 13px 14px; font-size: 15px;
    box-shadow: 3px 3px 0 #FCC162;
  }
  .ax-row { grid-template-columns: 1fr; }
  .ax-roles { grid-template-columns: 1fr; }
  .ax-f input, .ax-f select { padding: 11px 12px; font-size: 14px; }
  .ax-btn { padding: 13px; font-size: 15px; }
  .ax-or { margin: 16px 0 14px; }
  .ax-mobile-head { padding: 16px 16px 14px; }
  .ax-mobile-head h1 { font-size: 18px; }
}
