/* Premium Login & Register Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

/* Background Animated Elements */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: float 10s infinite alternate;
}

body::before {
  background: rgba(79, 70, 229, 0.4);
  top: -100px;
  left: -100px;
}

body::after {
  background: rgba(16, 185, 129, 0.3);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* AUTH CARD */
.box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: center;
  animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.box h2 {
  margin-bottom: 8px;
  color: #0F172A;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #64748B;
  font-size: 15px;
  margin-bottom: 30px;
}

/* INPUT FIELD */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  color: #1E293B;
  background: #F8FAFC;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #4F46E5;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

input::placeholder {
  color: #94A3B8;
}

/* BUTTON */
button {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

button:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(79, 70, 229, 0.4);
}

/* ERROR / SUCCESS MSG */
.error, .msg {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error {
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.msg {
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}

/* EXTRA LINKS */
.extra {
  margin-top: 25px;
  font-size: 15px;
  color: #64748B;
  font-weight: 500;
}

.extra a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 700;
  margin-left: 5px;
  transition: all 0.2s;
}

.extra a:hover {
  color: #4338CA;
  text-decoration: underline;
}

/* BACK BUTTON */
.back-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
}

.back-btn i {
  font-size: 14px;
}

.back-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(-5px);
}

/* Responsive */
.row {
  display: flex;
  gap: 15px;
}
.row .input-group {
  flex: 1;
}

@media (max-width: 480px) {
  .box { padding: 30px 20px; max-width: 90%; }
  .back-btn { top: 20px; left: 20px; padding: 8px 16px; }
  .row { flex-direction: column; gap: 0; }
}
