* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: #7a4f5d;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 18%, transparent 19%) 0 0 / 24px 24px,
    linear-gradient(180deg, #fffafb 0%, #ffeef4 100%);
}

/* ===== LOGIN / INDEX ===== */

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 230, 0.55), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(255, 230, 238, 0.7), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(255, 209, 220, 0.35), transparent 30%);
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 430px);
  margin: 8vh auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #f4c9d8;
  border-radius: 28px;
  padding: 34px 30px 30px;
  box-shadow:
    0 20px 60px rgba(209, 141, 169, 0.16),
    inset 0 0 0 6px rgba(255, 244, 248, 0.95);
  text-align: center;
  backdrop-filter: blur(8px);
}

.mini-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b97f93;
  margin-bottom: 8px;
}

.corner-bow {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.1rem;
  color: #e6a4bb;
}

.subtitle {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: #9c697b;
}

.form-group {
  text-align: left;
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
  color: #9b6276;
}

input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #efbfd0;
  background: #fffdfd;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #7a4f5d;
  outline: none;
  transition: 0.2s ease;
}

input::placeholder {
  color: #c89aaa;
}

input:focus {
  border-color: #de8ea9;
  box-shadow: 0 0 0 4px rgba(244, 200, 216, 0.28);
}

.button-wrap {
  margin-top: 20px;
}

button {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #f3a8c2 0%, #df88a8 100%);
  box-shadow: 0 10px 24px rgba(224, 136, 168, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(224, 136, 168, 0.34);
}

.note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #bb8297;
  font-style: italic;
}

#error {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #d65c83;
}

/* ===== TITLES GENERALES ===== */

h1 {
  margin: 0 0 8px;
  font-family: "Sacramento", cursive;
  font-weight: 400;
  color: #d77f9d;
  line-height: 0.95;
}

/* ===== DIARY ===== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 18px 22px;
  border-bottom: 1px solid #f0c7d6;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: "Sacramento", cursive;
  font-size: 2rem;
  color: #d57f9d;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1rem;
}

nav a {
  text-decoration: none;
  color: #9b6276;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #d57f9d;
}

.hero {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 22px 30px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #be879b;
  margin-bottom: 8px;
}

.page h1 {
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  color: #d87f9f;
  margin: 0;
}

.login-card h1 {
  font-size: clamp(3rem, 8vw, 4.6rem);
}

.intro {
  max-width: 660px;
  margin: 16px auto 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #875f6e;
}

.grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 22px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  display: block;
  background: rgba(255,255,255,0.82);
  border: 1px solid #f1c7d6;
  border-radius: 28px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(224, 160, 183, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(224, 160, 183, 0.18);
}

.card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bf8a9c;
  margin-bottom: 8px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #c96d8f;
}

.card p {
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #7f5d68;
}

.small-note {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px 65px;
  text-align: center;
  color: #b07a8e;
  font-style: italic;
  font-size: 1rem;
}

footer {
  margin-top: auto;
  border-top: 1px solid #f0c7d6;
  background: rgba(255,255,255,0.65);
  padding: 16px 22px;
  text-align: center;
  color: #aa7487;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  header {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px 24px;
  }

  .subtitle {
    font-size: 1rem;
  }
}