/* New Login Styles */
.nova-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(40, 40, 40, 0.9);
  border-radius: 25px;
  width: min(90%, 400px);
  margin: 2rem auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nova-login-form:hover {
  transform: translateY(-5px);
}

#nova-heading {
  text-align: center;
  color: #FFD700;
  font-family: 'Yeon Sung', cursive;
  font-size: 2.2rem;
  margin: 1rem 0;
}

.nova-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(50, 50, 50, 0.2);
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.nova-input-icon {
  height: 1.5rem;
  width: 1.5rem;
  fill: #FFD700;
}

.nova-input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: white;
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.1rem;
}

.nova-input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nova-login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.nova-login-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #8B008B, #FF69B4);
  color: white;
  font-family: 'Yeon Sung', cursive;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-login-btn:hover {
  background: linear-gradient(135deg, #FF69B4, #8B008B);
  box-shadow: 0 4px 15px rgba(139, 0, 139, 0.4);
}

/* Maintain existing styles below */

:root {
  --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --accent: #ec4899;
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--primary-gradient);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.header {
  text-align: center;
  padding: calc(var(--spacing-unit) * 3) 0;
  animation: slideDown 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.header h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(45deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-unit);
}

.header img {
  width: 48px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.header img:hover {
  transform: rotate(15deg) scale(1.1);
}

.login_div, .main {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: calc(var(--spacing-unit) * 3);
  width: min(90%, 480px);
  margin: var(--spacing-unit) auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login_div:hover, .main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.input-group {
  width: 100%;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.un, .pass {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.un:focus, .pass:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.un::placeholder, .pass::placeholder {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.un:focus::placeholder, .pass:focus::placeholder {
  transform: translateY(-150%);
  opacity: 0;
}

#login_button, .submit {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.2);
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#login_button::after, .submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#login_button:hover, .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

#login_button:hover::after, .submit:hover::after {
  opacity: 1;
}

#output {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 16px;
  padding: var(--spacing-unit);
  margin: var(--spacing-unit) 0;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

#output::-webkit-scrollbar {
  width: 6px;
}

#output::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.message_h4 {
  padding: calc(var(--spacing-unit) * 0.5);
  margin: calc(var(--spacing-unit) * 0.5) 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  animation: messagePopIn 0.3s ease-out;
}

@keyframes messagePopIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  :root {
    --spacing-unit: 0.8rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .login_div, .main {
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 2);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo {
  animation: float 3s ease-in-out infinite;
}

.input_div_message_page button {
  background: var(--primary-gradient);
  transition: transform 0.2s ease;
}

.input_div_message_page button:active {
  transform: scale(0.98);
}

.forgot {
  text-align: center;
  margin-top: var(--spacing-unit);
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}