/* Site-wide base styles */

/* Theme variables */
:root {
  --brand: slateblue;            /* primary brand color */
  --text-main: #0f172a;          /* default text */
  --bg-main: #ffffff;            /* main background color */
  --panel-bg: whitesmoke;        /* cards/panels */
  --success: #2ecc71;            /* success green */
  --danger: #e74c3c;             /* danger red */
  --warning: #f39c12;            /* warning amber */
  --info: #6c63ff;               /* info purple */
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling works on all devices */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 100vh;
}

/* Typography */
.page-title { width: 100%; text-align: center; }
h1.main-title { margin: 20px 0 0 0; font-size: 2rem; font-weight: 600; }
.normal-text { color: black; }
.highlight { color: var(--brand); }

/* Generic layout helpers */
.outer { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 0 1rem; }
.form-section { width: 100%; max-width: 600px; }
.container { width: 100%; max-width: 960px; padding: 0 1rem; margin: 0 auto; }

/* Panels */
.login-form {
  background-color: var(--panel-bg);
  border: 5px solid var(--brand);
  border-radius: 8px;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.login-title { margin: 0; font-size: 1.75rem; text-align: center; color: var(--brand); font-weight: 600; }
.form-content { width: 100%; }

/* Notices and messages */
.notice { background: #fffae6; border: 1px solid #ffe58f; padding: 10px; border-radius: 4px; }
.error { color: red; }
.error-container { background-color: lightcoral; padding: 0.75rem; border-radius: 4px; text-align: center; color: white; font-weight: 600; }
.display-box { padding: 0.75rem; background: #f0f0f0; border-radius: 4px; font-weight: bold; text-align: center; }

/* Buttons */
button, .btn {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background: var(--brand);
  color: white;
  transition: all 0.3s ease;
}
button:disabled, .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger {
  background: var(--danger);
}

.btn-secondary {
  background: #6b7280;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
}

.actions { text-align: center; }
.actions button { min-width: 150px; }

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}

/* Success visual elements reused across pages */
.clipboard { font-size: 120px; text-align: center; }
.success-image { display: flex; justify-content: center; align-items: center; margin-top: 1rem; }
.success-hero { max-width: 720px; margin: 40px auto; background: var(--panel-bg); border: 5px solid var(--brand); border-radius: 10px; padding: 24px; }
.success-message h2 { margin-top: 0; color: var(--brand); }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.success-actions button { background: var(--brand); color: white; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .login-form { padding: 0.75rem 1rem 1rem; }
  h1.main-title { font-size: 1.5rem; }
  .container { padding: 0 0.75rem; }
  .outer { padding: 0 0.75rem; }
}

@media (max-width: 480px) {
  .login-form { padding: 0.5rem 0.75rem 0.75rem; }
  h1.main-title { font-size: 1.25rem; }
  .container { padding: 0 0.5rem; }
  .outer { padding: 0 0.5rem; }
  .actions button { min-width: 120px; }
}


