:root {
    --bg: #1f1f1f;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --control-w: 420px;
    /* ancho máximo de input y botón */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.page {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 720px;
    /* más ancho para el título grande */
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px 28px;
    text-align: center;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 12px;
    filter: grayscale(100%);
}

.title {
    margin: 6px 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
}

/*
  Centrado de controles:
  - El contenedor .form y el botón tienen un ancho máximo y se centran con margin-inline:auto
  - El input ocupa el 100% del contenedor .form
*/
.form {
    margin: 0 0 16px;
    width: 100%;
    max-width: var(--control-w);
    margin-inline: auto;
    /* centra horizontalmente */
}

input[type="email"],
input[type="password"],
.pwd-input {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
.pwd-input::placeholder {
    color: #9ca3af;
}

input[type="email"]:focus,
input[type="password"]:focus,
.pwd-input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
}

input[type="email"]::placeholder {
    color: #9ca3af;
}

input[type="email"]:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
}

.google-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: var(--control-w);
    /* igual que el input */
    margin-inline: auto;
    /* centra horizontalmente */
    text-decoration: none;
    background: #111827;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .04s ease, filter .2s ease;
}

.google-btn:hover {
    filter: brightness(1.08);
}

.google-btn:active {
    transform: translateY(1px);
}

.g-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background:
        conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
    -webkit-mask: radial-gradient(circle at 60% 40%, transparent 6px, #000 6.5px);
    mask: radial-gradient(circle at 60% 40%, transparent 6px, #000 6.5px);
    border-radius: 4px;
}

.made-with {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.made-with .bolt {
    filter: grayscale(1);
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contenedor del input de contraseña con botón ojo */
.pwd-wrap {
    position: relative;
    width: 100%;
    max-width: var(--control-w);
    margin: 12px auto 0;
}

/* Deja espacio para el botón ojo al lado derecho */
.pwd-input {
    padding-right: 44px;
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    padding: 6px;
}

.pwd-toggle:focus-visible {
    outline: 2px solid #111827;
    border-radius: 8px;
}

.pwd-toggle[aria-pressed="true"] {
    color: #111827;
}

@media (max-width: 540px) {
    .card {
        padding: 28px 18px 20px;
    }

    .title {
        font-size: 24px;
    }

    :root {
        --control-w: 100%;
    }
}

.title {
    font-size: 24px;
}

:root {
    --control-w: 100%;
}
}

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: #000;
      color: #fff;
    }
    .app {
      max-width: 420px;
      margin: auto;
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: #111;
      border: 2px solid #2e2e2e;
      border-radius: 18px;
      overflow: hidden;
    }
    header {
      background: #1c1c1e;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
    }
    header h1 { margin: 0; font-size: 20px; }
    header button {
      background: #38a169;
      border: none;
      border-radius: 8px;
      color: white;
      font-weight: 600;
      padding: 6px 12px;
    }
    .search {
      background: #1c1c1e;
      display: flex;
      padding: 10px 16px;
      border-bottom: 1px solid #333;
    }
    .search input {
      flex: 1;
      border-radius: 8px;
      border: none;
      padding: 8px 10px;
      background: #2c2c2e;
      color: #fff;
    }
    .list { flex: 1; overflow-y: auto; padding-bottom: 70px; }
    .contact, .class-item, .offering-item, .attendance-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      border-bottom: 1px solid #222;
    }
    .contact img, .class-item img, .offering-item img {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      object-fit: cover;
    }
    .info { flex: 1; }
    .info h2 { margin: 0; font-size: 15px; color: #fff; }
    .info p { margin: 2px 0 0; font-size: 13px; color: #aaa; }
    .phone { font-size: 12px; color: #4ade80; }
    .desc { color: #84cc16; font-size: 12px; margin-bottom: 2px; }
    .date { font-size: 12px; color: #ccc; }

    .attendance-item {
      justify-content: space-between;
    }
    .attendance-item span {
      flex: 1;
      font-size: 14px;
      color: #e5e5e5;
    }

    footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 420px;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      align-items: center;
      background: #1c1c1e;
      padding: 8px 0;
      border-top: 1px solid #333;
      z-index: 100;
    }

footer button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
  padding: 4px 0;
  transition: color 0.3s ease;
}

footer button.active {
  color: #4ade80;
}

footer button .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  filter: invert(70%);
  transition: filter 0.3s ease;
}

footer button.active .icon {
  filter: invert(68%) sepia(76%) saturate(516%) hue-rotate(85deg) brightness(97%) contrast(92%);
}
