* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(to bottom, #F38635 0px, #FFF1E5 200px) no-repeat, #FFF1E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Top bar ── */
.topbar {
  position: fixed;
  top: 2.2rem;
  right: 2rem;
}

.topbar-btn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 13px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.topbar-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.18) 100%);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.55);
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

/* ── Speech-bubble logo ── */
.logo {
  display: inline-block;
  position: relative;
  margin-bottom: 38px; /* room for the tail */
}

.bubble {
  background: linear-gradient(to bottom, #ffffff 0%, #c8c8c8 100%);
  border-radius: clamp(14px, 2.5vw, 26px);
  padding: clamp(12px, 2.5vw, 28px) clamp(28px, 6vw, 64px);
  box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.22);
  position: relative;
}

/* tail — bottom-left, pointing down-left like the original */
.bubble::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: clamp(28px, 5vw, 48px);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 26px 0 0 22px;
  border-color: #c8c8c8 transparent transparent transparent;
}

.bubble-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.2rem, 13vw, 10rem);
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}

.bubble-text .m {
  color: #F38635;
}

p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #000;
  max-width: 38em;
  line-height: 1.6;
  margin-top: 2rem;
  text-align: center;
}

/* ── Login form ── */
.login-box .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-box .bubble {
  border-radius: 12px;
  padding: 8px 24px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.18);
}

.login-box .bubble::after {
  bottom: -14px;
  left: 20px;
  border-width: 16px 0 0 13px;
}

.login-box .bubble-text {
  font-size: 2.2rem;
}

.login-box {
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border-radius: clamp(14px, 2.5vw, 26px);
  padding: clamp(24px, 4vw, 48px) clamp(28px, 6vw, 64px);
  box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.22);
  width: clamp(280px, 90vw, 400px);
}

.login-box h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.login-box > p {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #555;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #F38635;
  box-shadow: 0 0 0 2px rgba(243, 134, 53, 0.2);
}

.error {
  display: block;
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 3px;
}

.login-error {
  background: #fdecea;
  border: 1px solid #e8b4b0;
  border-radius: 6px;
  color: #c0392b;
  font-size: 0.9rem;
  padding: 8px 12px;
  margin-bottom: 1rem;
}

.btn {
  width: 100%;
  background: #F38635;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: #d9721f;
}
