/* Sign-in page. Matches the palette in main.css (not loaded here). */
:root {
  --cc-primary: #4f46e5;
  --cc-primary-dark: #4338ca;
  --cc-bg: #f8fafc;
  --cc-border: #e2e8f0;
  --cc-text: #0f172a;
  --cc-text-muted: #64748b;
}

html, body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cc-bg);
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

#formContent {
  background: #fff;
  padding: 2.25rem 2rem 1.75rem;
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .06);
  width: 100%;
  max-width: 380px;
}

.cc-login-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
  margin: 0 1.5rem 1.5rem;
}
.cc-login-brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--cc-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.cc-login-sub { color: var(--cc-text-muted); font-size: .9rem; margin: -1rem 1.5rem 1.25rem; }

/* Subtle entrance */
.fadeIn { opacity: 0; animation: fadeIn .4s ease-out forwards; }
.fadeIn.second { animation-delay: .05s; }
.fadeIn.third  { animation-delay: .1s; }
.fadeIn.fourth { animation-delay: .15s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

input[type="text"],
input[type="password"] {
  padding: .6rem .8rem;
  width: 100%;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  font-size: .95rem;
}
input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

input[type="submit"] {
  width: 100%;
  padding: .6rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
}
input[type="submit"]:hover { background: var(--cc-primary-dark) !important; }

@media (max-width: 576px) {
  .wrapper { padding: 0; align-items: stretch; }
  #formContent { border-radius: 0; border: 0; max-width: 100%; padding-top: 4rem; }
}
