* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

body {
  background-color: #0a0a0a;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body.login-body::before,
body.register-body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.login-wrapper,
.register-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.brand-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.4s ease-out;
}

.brand-logo {
  display: inline-block;
  margin-bottom: 24px;
}

.brand-logo img {
  height: 70px;
  width: auto;
  transition: transform 0.2s;
  -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;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-title {
  color: #e5e7eb;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-title .highlight {
  color: #fa0062;
  position: relative;
}

.brand-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #fa0062, transparent);
}

.login-card,
.register-card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 450px;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUpCard 0.4s ease-out;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.login-card::before,
.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fa0062, transparent);
  transition: left 0.4s ease;
}

.login-card:hover::before,
.register-card:hover::before {
  left: 100%;
}

.login-card:hover,
.register-card:hover {
  border-color: rgba(250, 0, 98, 0.3);
  box-shadow: 0 30px 60px -12px rgba(250, 0, 98, 0.15);
  transform: translateY(-2px);
}

.input-group {
  margin-bottom: 28px;
  animation: fadeInLeft 0.3s ease-out;
  animation-fill-mode: both;
}

.input-group:nth-child(1) {
  animation-delay: 0.05s;
}

.input-group:nth-child(2) {
  animation-delay: 0.1s;
}

.input-group:nth-child(3) {
  animation-delay: 0.15s;
}

.input-label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: block;
  transition: color 0.2s ease;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #6b7280;
  font-size: 18px;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1;
}

.input-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.login-input-field {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: #151618;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #e5e7eb;
  font-size: 14px;
  transition: all 0.2s ease;
}

.login-input-field:focus {
  outline: none;
  border-color: #fa0062;
  box-shadow: 0 0 0 3px rgba(250, 0, 98, 0.15);
  background: #141517;
  transform: translateX(4px);
}

.login-input-field:focus+.input-icon {
  color: #fa0062;
  transform: scale(1.05);
}

.login-input-field:focus+.input-icon svg {
  transform: scale(1.1);
}

.login-input-field::placeholder {
  color: #6b7280;
  transition: opacity 0.2s ease;
}

.login-input-field:focus::placeholder {
  opacity: 0.5;
}

.login-captcha-box {
  background: #151618;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2px 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.login-captcha-box svg {
  width: 100%;
  height: 45px;
}

.login-captcha-refresh {
  background: #0f1011;
  border: 1px solid #17181a;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 20px;
  color: #e5e7eb;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-captcha-refresh:hover {
  border-color: #fa0062;
  color: #fa0062;
  transform: rotate(180deg) scale(1.05);
  background: rgba(250, 0, 98, 0.08);
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.captcha-box {
  background: #1a1c1e;
  border: 1px solid #2d2f31;
  border-radius: 16px;
  padding: 8px 12px;
  flex: 1;
  text-align: center;
}

.captcha-box svg {
  width: 100%;
  height: 44px;
}

.captcha-refresh {
  background: linear-gradient(135deg, #fa0062, #c0004a);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(250, 0, 98, 0.3);
  flex-shrink: 0;
}

.captcha-refresh:hover {
  transform: rotate(180deg);
  box-shadow: 0 -4px 15px rgba(250, 0, 98, 0.4);
}

.error-box {
  color: #fa0062;
  font-size: 13px;
  text-align: center;
  margin-bottom: 24px;
  min-height: 0;
  display: none;
  animation: shake 0.3s ease;
}

.error-box.show {
  display: block;
  background: rgba(250, 0, 98, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid #fa0062;
}

.login-btn,
.register-btn {
  width: 100%;
  background: linear-gradient(135deg, #fa0062, #c0004a);
  border: none;
  color: #fff;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  padding: 14px 24px;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(250, 0, 98, 0.3);
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn::before,
.register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.4s ease;
}

.login-btn:hover:not(:disabled),
.register-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(250, 0, 98, 0.5);
}

.login-btn:hover:not(:disabled)::before,
.register-btn:hover:not(:disabled)::before {
  left: 100%;
}

.login-btn:disabled,
.register-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-btn:disabled::before,
.register-btn:disabled::before {
  display: none;
}

.signup-link,
.login-link {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  animation: fadeIn 0.3s ease-out;
  animation-delay: 0.25s;
  animation-fill-mode: both;
}

.signup-link a,
.login-link a {
  color: #fa0062;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.signup-link a::after,
.login-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fa0062;
  transition: width 0.2s ease;
}

.signup-link a:hover::after,
.login-link a:hover::after {
  width: 100%;
}

.signup-link a:hover,
.login-link a:hover {
  color: #ff2080;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

@media (max-width: 768px) {
  .login-wrapper,
  .register-wrapper {
    padding: 24px 16px;
    min-height: 100dvh;
  }
  .login-card,
  .register-card {
    padding: 28px 20px;
    border-radius: 24px;
  }
  .brand-header {
    margin-bottom: 28px;
  }
  .brand-logo img {
    height: 55px;
  }
  .brand-title {
    font-size: 26px;
  }
  .login-input-field {
    padding: 16px 14px 16px 42px;
    font-size: 15px;
    border-radius: 14px;
  }
  .input-icon svg {
    width: 16px;
    height: 16px;
  }
  .login-btn,
  .register-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .login-captcha-refresh {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .captcha-refresh {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .captcha-box {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .login-wrapper,
  .register-wrapper {
    padding: 20px 12px;
    min-height: 100dvh;
  }
  .brand-logo img {
    height: 55px;
  }
  .brand-title {
    font-size: 26px;
  }
  .login-card,
  .register-card {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .login-input-field {
    padding: 14px 12px 14px 38px;
    font-size: 15px;
  }
  .input-icon {
    left: 12px;
  }
  .input-icon svg {
    width: 14px;
    height: 14px;
  }
  .login-btn,
  .register-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .login-captcha-refresh {
    width: 38px;
    height: 38px;
  }
  .captcha-refresh {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .login-wrapper,
  .register-wrapper {
    padding: 24px 16px;
    min-height: 100dvh;
  }
  .login-card,
  .register-card {
    padding: 28px 32px;
    border-radius: 24px;
  }
  .brand-header {
    margin-bottom: 24px;
  }
  .brand-logo img {
    height: 50px;
  }
  .brand-title {
    font-size: 24px;
  }
}