:root {
  --pink: #ff4d8d;
  --pink-dark: #d61f69;
  --rose: #ff7aa2;
  --purple: #9b5cff;
  --violet: #7c3aed;
  --peach: #ffb199;
  --yellow: #ffe29a;
  --blue: #7dd3fc;
  --white: #ffffff;
  --text: #42142f;
  --muted: #8a5a75;
  --border: rgba(255, 255, 255, 0.48);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(214, 31, 105, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 226, 154, 0.78), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(125, 211, 252, 0.62), transparent 30%),
    radial-gradient(circle at 15% 90%, rgba(155, 92, 255, 0.48), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(255, 77, 141, 0.56), transparent 32%),
    linear-gradient(135deg, #fff1f8, #ffe3ef, #f3e8ff, #e0f2fe);
  overflow-x: hidden;
}

body::before {
  content: "♥  ♡  ♥  ♡  ♥  ♡  ♥";
  position: fixed;
  top: 28px;
  left: -80px;
  width: 140%;
  font-size: 42px;
  letter-spacing: 38px;
  color: rgba(255, 77, 141, 0.10);
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
  animation: floatLove 8s ease-in-out infinite alternate;
}

body::after {
  content: "♡  ♥  ♡  ♥  ♡  ♥  ♡";
  position: fixed;
  bottom: 32px;
  right: -120px;
  width: 140%;
  font-size: 40px;
  letter-spacing: 34px;
  color: rgba(124, 58, 237, 0.09);
  transform: rotate(9deg);
  pointer-events: none;
  z-index: 0;
  animation: floatLove2 9s ease-in-out infinite alternate;
}

@keyframes floatLove {
  from {
    transform: translateY(0) rotate(-10deg);
  }

  to {
    transform: translateY(18px) rotate(-7deg);
  }
}

@keyframes floatLove2 {
  from {
    transform: translateY(0) rotate(9deg);
  }

  to {
    transform: translateY(-18px) rotate(6deg);
  }
}

a {
  color: var(--pink-dark);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  color: var(--violet);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.card,
.hero-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  width: 100%;
  max-width: 470px;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--yellow), var(--pink));
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 30px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 15px 35px rgba(255, 77, 141, 0.35);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 30px auto;
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 2;
  padding: 18px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(214, 31, 105, 0.12);
}

.topbar strong {
  font-size: 22px;
  color: var(--pink-dark);
}

.topbar .muted {
  margin-left: 8px;
}

.topbar nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  overflow: hidden;
}

.hero-card h1 {
  font-size: 38px;
  margin-top: 14px;
}

.hero-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.hero-heart {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 68px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 20px 45px rgba(214, 31, 105, 0.25);
  flex: 0 0 auto;
}

h1,
h2 {
  margin: 0 0 10px;
  color: #831843;
  line-height: 1.25;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 7px;
  font-weight: 800;
  color: #831843;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 162, 0.35);
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}

input,
select,
textarea {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 77, 141, 0.85);
  box-shadow: 0 0 0 5px rgba(255, 77, 141, 0.13);
  transform: translateY(-1px);
  background: #fff;
}

textarea {
  min-height: 175px;
  resize: vertical;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

button {
  border: 0;
  margin-top: 20px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 15px 32px rgba(214, 31, 105, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(214, 31, 105, 0.34);
  filter: saturate(1.12);
}

button:active {
  transform: translateY(0);
}

.alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.error {
  color: #991b1b;
  background: rgba(255, 241, 242, 0.90);
  border-color: rgba(254, 202, 202, 0.95);
}

.success {
  color: #166534;
  background: rgba(240, 253, 244, 0.90);
  border-color: rgba(187, 247, 208, 0.95);
}

.message-form {
  display: grid;
  gap: 2px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 162, 0.25);
  background: rgba(255, 255, 255, 0.55);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(255, 122, 162, 0.18);
  padding: 13px 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #831843;
  background: linear-gradient(135deg, rgba(255, 228, 236, 0.95), rgba(243, 232, 255, 0.95));
}

td {
  color: #4a1737;
}

tr:hover td {
  background: rgba(255, 240, 246, 0.72);
}

.message-preview {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.love-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  color: #831843;
  line-height: 1.55;
  border: 1px solid rgba(255, 122, 162, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.95), rgba(243, 232, 255, 0.86)),
    radial-gradient(circle at top right, rgba(255, 226, 154, 0.65), transparent 38%);
}

.love-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #be123c;
  font-weight: 900;
  background: rgba(255, 240, 246, 0.94);
  border: 1px solid rgba(255, 122, 162, 0.34);
}

.status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.status.sent {
  color: #166534;
  background: #dcfce7;
}

.status.wait {
  color: #92400e;
  background: #fef3c7;
}

select {
  cursor: pointer;
}

::placeholder {
  color: rgba(138, 90, 117, 0.72);
}

@media (max-width: 720px) {
  .topbar,
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-heart {
    width: 92px;
    height: 92px;
    font-size: 50px;
  }

  .hero-card h1 {
    font-size: 30px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 21px;
  }

  .card,
  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

  body::before,
  body::after {
    font-size: 30px;
    letter-spacing: 20px;
  }
}