body.login-page {
  background: #1a1a2e;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
  letter-spacing: 0;
}

#login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}

.left-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #d4d0dc 0%, #c8c4d0 50%, #bbb7c5 100%);
  padding: 40px 48px;
  overflow: hidden;
}

.left-panel .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  z-index: 10;
  position: relative;
}

.left-panel .logo .brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
}

.characters-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 420px;
  flex: 1;
}

.left-panel::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 260px;
  height: 260px;
  background: rgba(180,170,200,0.25);
  border-radius: 50%;
  filter: blur(80px);
}

.left-panel::before {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(200,195,210,0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.right-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.sparkle-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sparkle-icon .brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
}

.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.form-header p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.login-page .form-group {
  margin-bottom: 20px;
}

.login-page .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.login-page .form-group .input-wrapper {
  position: relative;
}

.login-page .form-group input {
  width: 100%;
  height: 48px;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 0;
  padding: 0 40px 0 0;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a2e;
  background: transparent;
  outline: none;
  box-shadow: none;
  transition: border-color 0.3s;
}

.login-page .form-group input:focus {
  border-bottom-color: #5B21B6;
  box-shadow: none;
}

.login-page .form-group input::placeholder {
  color: #ccc;
}

.login-page .form-group input[type="password"]:not(:placeholder-shown) {
  font-family: inherit;
  letter-spacing: 2px;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 6px;
  transition: color 0.2s;
}

.toggle-password:hover { color: #333; }
.toggle-password:focus-visible { outline: 2px solid #6c3ff5; outline-offset: 4px; border-radius: 6px; }

.btn-login,
.btn-alt {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-login {
  border: 1.5px solid #1a1a2e;
  background: #1a1a2e;
  color: #fff;
}

.btn-alt {
  border: 1.5px solid #e0e0e0;
  background: #f5f5f5;
  color: #333;
}

.btn-login .btn-text,
.btn-alt .btn-text {
  display: inline-block;
  transition: all 0.3s;
}

.btn-login .btn-hover-content,
.btn-alt .btn-hover-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #5B21B6;
  color: #fff;
  opacity: 0;
  transition: all 0.3s;
  border-radius: 25px;
}

.btn-login:hover .btn-text,
.btn-alt:hover .btn-text {
  transform: translateX(40px);
  opacity: 0;
}

.btn-login:hover .btn-hover-content,
.btn-alt:hover .btn-hover-content {
  opacity: 1;
}

.btn-login:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.signup-link {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 32px;
}

.signup-link a {
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover { text-decoration: underline; }

.characters-scene { width: 100%; max-width: 560px; }
.characters-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.character-face { pointer-events: none; }

.login-page .err.error-msg,
.login-page .error-msg {
  display: none;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px;
  margin-bottom: 16px;
}

.login-page .form-group input.error {
  border-bottom-color: #dc2626;
}

@media (max-width: 1000px) {
  .left-panel { padding: 28px 24px; }
  .right-panel { padding: 32px; }
}
@media (max-width: 760px) {
  body.login-page { overflow: auto; height: auto; }
  #login-page { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .left-panel { padding: 20px 24px 16px; gap: 10px; }
  .characters-wrapper { min-height: 0; }
  .characters-scene { max-width: 290px; }
  .right-panel { padding: 30px 24px; }
  .sparkle-icon { display: none; }
  .form-header { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none !important; animation: none !important; }
}
@media (hover: none) {
  .btn-login:hover .btn-text,
  .btn-alt:hover .btn-text { transform: none; opacity: 1; }
  .btn-login:hover .btn-hover-content,
  .btn-alt:hover .btn-hover-content { opacity: 0; }
}
