/* App-specific styles layered on top of /assets/css/site.css */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 50%, #f8fafc 100%);
}

.app-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.app-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
  padding: 40px 36px;
}

.app-card .logo {
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.app-card .logo-mark { width: 38px; height: 38px; font-size: 1rem; }

.app-card h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.app-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.beta-banner {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: white;
  color: var(--text);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.form-row label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }
.form-row input[type="checkbox"] { margin: 0; }

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  justify-content: center;
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.sso-buttons {
  display: grid;
  gap: 10px;
}
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all .15s ease;
}
.sso-btn:hover { background: var(--bg-alt); border-color: #cbd5e1; }
.sso-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.app-footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 28px;
}
.app-footer-text a { font-weight: 500; }

.error-message {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
}
.error-message.show { display: block; }

.app-bottom-links {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.app-bottom-links a { margin: 0 8px; }
