:root {
    --surface: #ffffff;
    --on-surface: #1f1f1f;
    --muted: #5f6368; /* neutral gray */
    --primary: #1a73e8;
    --primary-foreground: #ffffff;
    --outline: #dadce0; /* light border */
    --error: #d93025;
    --shadow: 0 2px 8px rgba(29, 29, 29, 0.12), 0 1px 3px rgba(0,0,0,.08);
    --radius: 12px;
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, "Apple Color Emoji", "Segoe UI Emoji";
    background: #f6f8fc;
    /* background-image: url("./assets/img/backdrop_claro.jpg"); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--on-surface);
    display: grid;
    place-items: center;
    padding: 24px;
    line-height: 1.4;
}



.card {
    width: 100%;
    max-width: 384px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.success-message {
  display: none;
  margin-top: 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #25629c;
  border: 1px solid #90caf9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  align-items: center;
  gap: 8px;
  position: relative;
  animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.fail-message {
  display: none;
  margin-top: 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #25629c;
  border: 1px solid #90caf9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  align-items: center;
  gap: 8px;
  position: relative;
  animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    user-select: none;
}
.brand .logo {
    width: 30px; height: 30px;
    border-radius: 5px;
    background: conic-gradient(from 45deg, #ea4335 0 25%, #fbbc04 0 50%, #34a853 0 75%, #4285f4 0 100%);
    display: inline-block;
}
.brand .name { font-weight: 600; letter-spacing: .2px; }

h1 { font-size: 24px; font-weight: 500; margin: 0 0 8px; }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.field { position: relative; margin-bottom: 12px; }
.field input {
    width: 100%;
    font: inherit;
    padding: 20px 14px 6px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: transparent;
    color: var(--on-surface);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 28%, transparent);
}

/* Toggle password button */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color .15s ease;
    outline: none;
}
.toggle-password:hover {
    color: var(--primary);
}
.toggle-password:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
.eye-icon {
    pointer-events: none;
}

/* floating label */
.field label {
    position: absolute;
    left: 14px;
    top: 50%;
    translate: 0 -50%;
    background: var(--surface);
    padding: 0 4px;
    color: var(--muted);
    pointer-events: none;
    transition: transform .15s ease, color .15s ease, top .15s ease, font-size .15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 12px;
    color: var(--primary);
    translate: 0;
}


.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.btn {
    appearance: none;
    border: 1px solid var(--outline);
    background: transparent;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}
.btn:focus-visible { outline: 3px solid color-mix(in oklab, var(--primary) 28%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.divider {
    display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px;
}
.divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: var(--outline);
}

.alt-account { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: 999px; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #e8f0fe; display: grid; place-items: center; font-weight: 700; }

footer { margin-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* small screens */
@media (max-width: 420px) {
    .card { padding: 24px 20px; border-radius: 0; box-shadow: none; border: 0; }
}