/* Shared ModernIT auth (login) page styles.
   Each app links this stylesheet, then keeps its own logo icon, app name,
   and tagline in its own markup. Override --auth-accent per app if the
   brand color differs from the default. */

:root {
  --auth-bg: #1a2744;
  --auth-accent: #1a2744;
  --auth-accent-active: #243560;
  --auth-radius: 16px;
}

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

.auth-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--auth-bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px env(safe-area-inset-bottom, 16px);
}

.auth-logo { margin-bottom: 32px; text-align: center; }
.auth-logo-icon {
  width: 64px; height: 64px;
  background: white;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.auth-logo h1 { font-size: 26px; font-weight: 700; color: white; letter-spacing: -0.3px; }
.auth-logo p { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 3px; }

.auth-card {
  background: white;
  border-radius: var(--auth-radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #c62828;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-size: 12px; font-weight: 600; color: #888;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.auth-field input[type=text], .auth-field input[type=password] {
  width: 100%;
  padding: 14px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.auth-field input:focus { outline: none; border-color: var(--auth-accent); background: white; }

.auth-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--auth-accent);
  color: white;
  margin-top: 8px;
  -webkit-appearance: none;
  transition: background 0.15s;
}
.auth-btn:active { background: var(--auth-accent-active); }

.auth-btn-faceid {
  display: none;
  width: 100%;
  padding: 15px;
  border: 2px solid var(--auth-accent);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: white;
  color: var(--auth-accent);
  margin-bottom: 14px;
  -webkit-appearance: none;
  transition: background 0.15s, color 0.15s;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-btn-faceid:active { background: #f0f3fa; }

/* Shared Face ID glyph — use <span class="auth-faceid-icon"></span> inside
   .auth-btn-faceid instead of embedding the SVG inline in each app. */
.auth-faceid-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url('https://assets.modernit.com.au/img/faceid.svg') center / contain no-repeat;
  mask: url('https://assets.modernit.com.au/img/faceid.svg') center / contain no-repeat;
}

.auth-divider { display: none; text-align: center; font-size: 12px; color: #ccc; margin-bottom: 14px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #eee; }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.auth-faceid-error { display: none; font-size: 13px; color: #c62828; text-align: center; margin-bottom: 12px; }
