/* Flow Fuel — shared styles for auth pages (login, signup, reset) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
}
html, body { max-width: 100%; overflow-x: hidden; }

.auth-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(16px);
}

.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo img { height: 44px; border-radius: 8px; }
.auth-logo span { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }

.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.auth-sub { font-size: 0.9rem; color: #94a3b8; margin-bottom: 26px; line-height: 1.5; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border .2s, background .2s;
  width: 100%;
}
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus { border-color: #60a5fa; background: rgba(255,255,255,.12); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Password field with show/hide toggle */
.field-input { position: relative; }
.field-input input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s;
}
.pw-toggle:hover { color: #fff; }
.pw-toggle:focus-visible { outline: 2px solid #60a5fa; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.showing .eye { display: none; }
.pw-toggle.showing .eye-off { display: block; }

.btn-auth {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(29,78,216,.4);
  transition: all .2s;
  margin-top: 4px;
}
.btn-auth:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); transform: translateY(-1px); }
.btn-auth:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-foot { margin-top: 22px; font-size: 0.875rem; color: #94a3b8; text-align: center; line-height: 1.7; }
.auth-foot a { color: #60a5fa; text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.msg { border-radius: 10px; padding: 13px 15px; font-size: 0.875rem; margin-bottom: 18px; display: none; line-height: 1.45; }
.msg.error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.msg.success { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }
.msg.info    { background: rgba(96,165,250,.1);  border: 1px solid rgba(96,165,250,.25); color: #93c5fd; }

.hint { font-size: 0.75rem; color: #64748b; margin-top: -8px; margin-bottom: 16px; }
.back-home { position: fixed; top: 20px; left: 22px; font-size: 0.85rem; color: #93c5fd; text-decoration: none; font-weight: 600; }
.back-home:hover { text-decoration: underline; }

.hidden { display: none !important; }

.btn-google {
  width: 100%;
  background: #fff;
  color: #1e293b;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s;
  margin-bottom: 18px;
}
.btn-google:hover { background: #f1f5f9; transform: translateY(-1px); }
.btn-google:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #475569;
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}
