/*
 * This is a manifest file that'll be compiled into application.css.


 */

/* ── Cinnamoroll palette ─────────────────────────────────────────── */
:root {
  --sky:       #A8D8EA;
  --sky-light: #EBF7FC;
  --sky-dark:  #6DB8D8;
  --pink:      #FFB7C5;
  --pink-dark: #F9899F;
  --white:     #FFFFFF;
  --text:      #3D4852;
  --text-muted:#7A8A96;
  --border:    #C9E8F5;
  --error-bg:  #FFF0F3;
  --error:     #D64F6E;
}

/* ── Reset / base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sky-light);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Auth layout ─────────────────────────────────────────────────── */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(168, 216, 234, 0.35);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sky-dark);
  letter-spacing: -0.5px;
}

.auth-logo p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.auth-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ── Form elements ───────────────────────────────────────────────── */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.field input[type="email"],
.field input[type="text"],
.field input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--sky-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field input:focus {
  border-color: var(--sky-dark);
  box-shadow: 0 0 0 3px rgba(109, 184, 216, 0.2);
  background: var(--white);
}

.field .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.actions { margin-top: 1.5rem; }

.btn-primary,
.actions input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--sky-dark);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover,
.actions input[type="submit"]:hover {
  background: #5AAACF;
}

.btn-primary:active,
.actions input[type="submit"]:active {
  transform: scale(0.98);
}

/* ── Flash messages ──────────────────────────────────────────────── */
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.flash.notice { background: #E0F4FF; color: #2272A8; border: 1px solid var(--sky); }
.flash.alert  { background: var(--error-bg); color: var(--error); border: 1px solid #F5C6CF; }

/* ── Error messages ──────────────────────────────────────────────── */
#error_explanation {
  background: var(--error-bg);
  border: 1px solid #F5C6CF;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

#error_explanation h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--error);
  margin-bottom: 0.5rem;
  text-align: left;
}

#error_explanation ul { padding-left: 1.2rem; }
#error_explanation li { font-size: 0.85rem; color: var(--error); }

/* ── Auth links ──────────────────────────────────────────────────── */
.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--sky-dark);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
}
