:root {
  --ms-ink: #101820;
  --ms-muted: #5c6670;
  --ms-paper: #f7f4ef;
  --ms-amber: #eba112;
  --ms-amber-soft: #ffd56a;
  --ms-amber-deep: #c98400;
  --ms-line: rgba(16, 24, 32, 0.08);
  --ms-white: #ffffff;
}

.ms-page-bg {
  min-height: 100vh;
  color: var(--ms-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(235, 161, 18, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 213, 106, 0.28), transparent 50%),
    linear-gradient(180deg, #fffdf8 0%, var(--ms-paper) 45%, #efe9df 100%);
}

.ms-shell {
  width: min(520px, calc(100% - 32px));
  margin: 28px auto 48px;
  animation: msRise 0.55s ease-out both;
}

.ms-shell.ms-shell-wide {
  width: min(920px, calc(100% - 32px));
}

@keyframes msRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ms-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 32px 28px;
  color: var(--ms-ink);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff8e8 42%, #ffd56a 78%, #eba112 100%);
  border: 1px solid rgba(235, 161, 18, 0.35);
  box-shadow: 0 18px 40px rgba(201, 132, 0, 0.16);
}

.ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.28) 14px,
      rgba(255, 255, 255, 0.28) 15px
    );
  pointer-events: none;
}

.ms-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ms-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--ms-ink);
  background: linear-gradient(145deg, #ffffff, var(--ms-amber-soft));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  animation: msAvatarPulse 2.4s ease-in-out infinite;
}

@keyframes msAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65); }
  50% { box-shadow: 0 0 0 8px rgba(235, 161, 18, 0.28); }
}

.ms-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 24, 32, 0.55);
}

.ms-hero h1,
.ms-hero .ms-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: var(--ms-ink);
}

.ms-hero p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 24, 32, 0.72);
  max-width: 34ch;
}

.ms-panel {
  margin-top: 18px;
  background: var(--ms-white);
  border: 1px solid var(--ms-line);
  border-radius: 20px;
  padding: 22px 22px 24px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.06);
  animation: msRise 0.65s ease-out 0.08s both;
}

.ms-panel h2 {
  margin: 0 0 18px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: var(--ms-ink);
}

.ms-field-label {
  display: block;
  margin: 0 0 6px 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-muted);
}

.ms-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.ms-input-wrap .ms-input,
.ms-input-wrap input.ms-input,
.ms-input-wrap select.ms-input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ms-ink);
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px 0 46px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-input-wrap select.ms-input {
  appearance: auto;
  cursor: pointer;
}

.ms-input-wrap .ms-input:focus {
  border-color: var(--ms-amber);
  box-shadow: 0 0 0 3px rgba(235, 161, 18, 0.18);
}

.ms-input-wrap .ms-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--ms-amber-deep);
  z-index: 2;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd56a, var(--ms-amber) 55%, var(--ms-amber-deep));
  background-size: 180% 180%;
  color: var(--ms-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(201, 132, 0, 0.25);
  animation: msBtnShine 3.2s ease-in-out infinite;
}

@keyframes msBtnShine {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 10px 24px rgba(201, 132, 0, 0.22); }
  50% { background-position: 100% 50%; box-shadow: 0 14px 30px rgba(201, 132, 0, 0.36); }
}

.ms-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 32px rgba(201, 132, 0, 0.38);
  color: var(--ms-ink);
}

.ms-btn-inline {
  width: auto;
  min-width: 140px;
  padding: 0 22px;
  height: 44px;
  text-decoration: none !important;
}

.ms-theme-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px 24px;
  color: var(--ms-ink);
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 40%, #ffd56a 78%, #eba112 100%);
  border: 1px solid rgba(235, 161, 18, 0.4);
  box-shadow: 0 16px 36px rgba(201, 132, 0, 0.16);
  animation: msRise 0.55s ease-out both;
}

.ms-theme-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.28) 14px,
      rgba(255, 255, 255, 0.28) 15px
    );
  pointer-events: none;
  animation: msStripeDrift 12s linear infinite;
}

@keyframes msStripeDrift {
  from { transform: translateX(0); }
  to { transform: translateX(28px); }
}

.ms-theme-banner > * {
  position: relative;
  z-index: 1;
}

.ms-link {
  color: var(--ms-ink) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.ms-link:hover {
  color: var(--ms-amber-deep) !important;
}

.ms-alert {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}

.ms-alert-error {
  color: #9b1c1c;
  background: rgba(192, 57, 43, 0.08);
}

.ms-alert-success {
  color: #146c2e;
  background: rgba(26, 127, 55, 0.08);
}

.ms-info-box {
  background: linear-gradient(120deg, rgba(235, 161, 18, 0.12), #fff);
  border: 1px solid rgba(235, 161, 18, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: var(--ms-ink);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .ms-shell,
  .ms-shell.ms-shell-wide {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .ms-hero {
    padding: 26px 20px;
  }
}
