/* --- SchoolCR Precise Theme for Listmonk --- */
@font-face {
  font-family: "Asimovian";
  src: url("https://schoolcr.com/fonts/asimovian/Asimovian-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-50: #eef4ff;
  --brand-100: #dbe7ff;
  --brand-200: #b8ceff;
  --brand-300: #8fb1ff;
  --brand-400: #6c98ff;
  --brand-500: #448aff;
  --brand-600: #3a76e6;
  --brand-700: #2f5fbf;
  --brand-800: #264c99;
  --brand-900: #1b3a75;
  --brand-glow: rgba(68, 138, 255, .35);
  
  --ink: #37474f;
  --ink-soft: #455a64;
  --ink-muted: #8c8c8c;
  
  --canvas: #f3f3f3;
  --border-slate-100: #f1f5f9;
  --border-slate-200: #e2e8f0;
}

/* Hide listmonk footer */
footer.container, footer {
    display: none !important;
}

/* Base Body */
body {
    font-family: 'Figtree', 'Open Sans', 'Asimovian', system-ui, sans-serif;
    background-color: var(--canvas);
    color: var(--ink);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Figtree", "Open Sans", sans-serif;
    letter-spacing: -0.01em;
}

/* Container matching .card */
.container.wrap {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-slate-100);
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 4px rgba(0,0,0,.06);
    max-width: 400px;
    width: 90%;
    margin: 2rem auto;
    animation: fadeUp 0.7s ease-out both;
    box-sizing: border-box;
}

/* Header & Logo */
.header .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo img {
    max-height: 48px;
    width: auto;
}

/* Typography */
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--ink);
    text-align: left;
}

/* Label matching .label */
label {
    display: block;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em; /* tracking-wide */
    color: var(--ink-soft);
    margin-bottom: 0.375rem; /* mb-1.5 */
}

/* Inputs matching .input */
input[type="email"],
input[type="text"] {
    width: 100%;
    height: 2.75rem; /* h-11 */
    padding: 0 0.875rem; /* px-3.5 */
    border: 1px solid var(--border-slate-200);
    border-radius: 6px; /* rounded-md */
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem; /* text-sm */
    color: var(--ink);
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 1rem;
    outline: none;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder {
    color: #94a3b8; /* text-slate-400 */
}

input[type="email"]:focus,
input[type="text"]:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px var(--brand-200);
}

/* Button matching .btn-primary */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    background-color: var(--brand-500);
    color: #ffffff;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    border: none;
    border-radius: 6px; /* rounded-md */
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px -10px var(--brand-glow); /* shadow-pop */
    margin-top: 0.5rem;
    font-family: inherit;
    height: 40px;
}

.button:hover {
    background-color: var(--brand-600);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lists container */
ul.lists {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

ul.lists h2 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

ul.lists li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom Checkbox matching .checkbox-brand */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    vertical-align: middle;
    margin: 0;
}

input[type="checkbox"]:checked {
    background: var(--brand-500);
    border-color: var(--brand-500);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover:not(:checked) {
    border-color: var(--brand-400);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--brand-200);
    outline-offset: 2px;
}

/* Label next to checkbox shouldn't be uppercase */
ul.lists label {
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: normal;
    color: var(--ink);
    margin-bottom: 0;
    cursor: pointer;
}

/* Links */
.right {
    text-align: center;
    margin-top: 1.25rem;
}

.right a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.right a:hover {
    color: var(--ink);
}

/* Animations matching Tailwind config */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}