/* صفحة الدخول */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(200, 154, 116, 0.16), transparent 28%),
    linear-gradient(135deg, #fdf7ef 0%, #f7efe7 100%);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 50px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-heart {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.login-box h1 {
  color: var(--text);
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 600;
}

.login-box p {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 14px;
}

.code-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 4px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fafaf8;
  color: var(--text);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.code-input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(141, 91, 60, 0.1);
}

.code-input::placeholder {
  color: var(--muted);
  letter-spacing: 2px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(141, 91, 60, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 91, 60, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.error-msg {
  margin: 16px 0 0;
  font-size: 13px;
  min-height: 18px;
}

/* End صفحة الدخول */

:root {
  --bg: #f7efe7;
  --panel: #fffaf5;
  --text: #3d2a24;
  --muted: #7a5f58;
  --accent: #8d5b3c;
  --accent-soft: #c89a74;
  --border: rgba(93, 57, 35, 0.16);
  --shadow: 0 20px 45px rgba(70, 41, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(200, 154, 116, 0.16), transparent 28%),
    linear-gradient(135deg, #fdf7ef 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 20px 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.hero-text,
.hero-card,
.media-card,
.video-frame {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-text {
  padding: 36px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.hero-card {
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.97), rgba(248, 233, 219, 0.95));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 8px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.poetic {
  font-style: italic;
}

.heart-mark {
  font-size: 2.4rem;
  color: var(--accent);
}

.section {
  margin-top: 40px;
}

.section-heading {
  margin-bottom: 20px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.media-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 40px rgba(73, 44, 29, 0.15);
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
  display: block;
  background: #efe2d3;
}

.media-card.video-card {
  position: relative;
  background: linear-gradient(135deg, #24140f 0%, #5b3a2b 100%);
}

.media-card.video-card::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 1;
}

.media-card.video-card video {
  background: #000;
  position: relative;
  z-index: 0;
}

.video-section {
  padding-bottom: 10px;
}

.video-frame {
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(247, 233, 220, 0.95));
}

.video-frame iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .hero,
  .memory-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
  }
}
