@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 80px;
  background: radial-gradient(circle at 50% 50%, #2b2b2b 0%, #050505 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  gap: 0.2em;
  margin: 10px 0;
  user-select: none;
  width: 100%;
  padding: 0 8px;
}

.play-icon {
  width: 1em;
  height: auto;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.5));
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.logo-text {
  font-family: "Luckiest Guy", system-ui, sans-serif;
  font-size: 1em !important;
  text-shadow: 2px 2px 0 #000, 4px 4px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin: 0;
  line-height: 1;
  padding-top: 0;
  -webkit-text-stroke: 0.04em black;
  paint-order: stroke fill;
  background: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-text span {
  display: inline-block;
}

.char-0 { color: #e74c3c; }
.char-1 { color: #3498db; }
.char-2 { color: #2ecc71; }
.char-3 { color: #e84393; }
.char-4 { color: #f39c12; }
.char-5 { color: #9b59b6; }
.char-6 { color: #1abc9c; }
.char-7 { color: #f1c40f; }

.form-container {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
  border: 1px solid #303030;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #121212;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ff4444;
  background: #121212;
}

.form-group input::placeholder {
  color: #666;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #121212;
  line-height: 0;
  padding: 2px 6px;
  box-sizing: border-box;
  height: 56px;
  max-height: 60px;
}

.captcha-box svg {
  height: 50px;
  width: auto;
  max-width: 100%;
}

.captcha-refresh {
  width: 56px;
  height: 56px;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #121212;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
}

.captcha-input {
  margin-top: 0;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
  margin-bottom: 10px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled,
.submit-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.error-box {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 16px;
  font-size: 13px;
}

.field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

.message-container {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}

.auth-switch a {
  color: #ff4444;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding: 30px 16px 70px;
  }
  .header {
    margin-bottom: 20px;
  }
  .form-container {
    padding: 24px 16px;
  }
}