/* ================================
   Base layout & typography
   ================================ */

:root {
    --mm-primary: #b53a6d;      /* warm, musical accent */
    --mm-primary-dark: #8c2d54;
    --mm-secondary: #f6b83f;    /* playful yellow highlight */
    --mm-bg: #fdf9f6;           /* soft, light background */
    --mm-text: #333333;
    --mm-muted: #777777;
    --mm-border: #e4d7cc;
    --mm-error: #c0392b;
    --mm-success: #2e7d32;
    --mm-radius: 10px;
    --mm-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Helvetica Neue", Arial, sans-serif;
    background: var(--mm-bg);
    color: var(--mm-text);
}

/* Centered card layout for forms */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.lm-container,
.container,
#root {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Main card wrapper */

.lm-card,
.form-card,
form {
    background: #ffffff;
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-soft);
    padding: 28px 26px 26px;
    box-sizing: border-box;
}

/* ================================
   Header / branding
   ================================ */

header,
.lm-header {
    text-align: center;
    margin-bottom: 20px;
}

.lm-logo,
.logo {
    display: block;
    margin: 0 auto 10px;
    max-width: 220px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--mm-primary-dark);
    margin: 0 0 8px;
}

h1 {
    font-size: 1.7rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

/* Tagline inspired by “Creating musical children…one note at a time!” */

.lm-tagline,
.tagline,
.subtitle {
    font-size: 0.95rem;
    color: var(--mm-muted);
    margin-bottom: 10px;
}

/* Optional “banner” area for important notes (e.g. free preview class) */

.mm-banner {
    background: linear-gradient(135deg, var(--mm-secondary), #ffd97b);
    color: #5a3a1a;
    border-radius: var(--mm-radius);
    padding: 10px 14px;
    font-size: 0.95rem;
    margin-bottom: 18px;
    font-weight: 600;
}

/* ================================
   Form elements
   ================================ */

form label,
label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mm-text);
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    border-radius: 7px;
    border: 1px solid var(--mm-border);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
        background-color 0.15s ease;
    background-color: #fefdfb;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(181, 58, 109, 0.15);
    background-color: #ffffff;
}

/* Helper text / small text */

small,
.helper-text {
    display: block;
    font-size: 0.78rem;
    color: var(--mm-muted);
    margin-top: 3px;
}

/* Checkboxes & radios */

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--mm-primary);
}

/* ================================
   Buttons
   ================================ */

button,
input[type="submit"],
.lm-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-dark));
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease,
        background 0.15s ease;
    box-shadow: 0 6px 18px rgba(181, 58, 109, 0.35);
}

button:hover,
input[type="submit"]:hover,
.lm-btn:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(181, 58, 109, 0.4);
}

button:active,
input[type="submit"]:active,
.lm-btn:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(181, 58, 109, 0.35);
}

button[disabled],
input[type="submit"][disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Secondary / ghost button */

.mm-btn-secondary {
    background: #ffffff;
    color: var(--mm-primary-dark);
    border: 1px solid var(--mm-primary);
    box-shadow: none;
}

.mm-btn-secondary:hover {
    background: rgba(181, 58, 109, 0.05);
}

/* ================================
   Lists of lists (subscription list chooser)
   ================================ */

.lm-lists,
.list-group,
.subscription-lists {
    margin: 16px 0 6px;
    padding: 0;
    list-style: none;
}

.lm-lists li,
.subscription-lists li {
    background: #fdf6ff;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(181, 58, 109, 0.15);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.lm-lists li:hover,
.subscription-lists li:hover {
    background: #fbeeff;
}

/* ================================
   Messages: success, error, info
   ================================ */

.lm-alert,
.alert,
.message {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.lm-alert-success,
.alert-success {
    background: #e7f5ea;
    color: var(--mm-success);
    border: 1px solid #c7e4cc;
}

.lm-alert-error,
.alert-error {
    background: #fdecea;
    color: var(--mm-error);
    border: 1px solid #f5c3bd;
}

/* ================================
   Links
   ================================ */

a {
    color: var(--mm-primary);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* ================================
   Footer / small print
   ================================ */

footer,
.lm-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--mm-muted);
}

footer a,
.lm-footer a {
    color: var(--mm-primary-dark);
}

/* ================================
   Responsive tweaks
   ================================ */

@media (max-width: 600px) {
    .lm-card,
    .form-card,
    form {
        padding: 20px 16px 18px;
    }

    h1 {
        font-size: 1.45rem;
    }
}

/* ================================
   Optional: “class stripes” section
   (if you add custom HTML above the form)
   Inspired by the three class levels on the homepage:
   Sound Beginnings, Let’s Play Music, Let’s Play Recorder.
   ================================ */

.mm-class-stripes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.mm-class-stripe {
    border-radius: 8px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 600;
}

.mm-class-stripe.sb {
    background: linear-gradient(135deg, #6ec1e4, #4b9cc2); /* Sound Beginnings */
}

.mm-class-stripe.lpm {
    background: linear-gradient(135deg, #f27a54, #ee5c39); /* Let’s Play Music */
}

.mm-class-stripe.lpr {
    background: linear-gradient(135deg, #8cc665, #5d9b3b); /* Let’s Play Recorder */
}
