/* static/register.css */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgb(234, 255, 221);
  color: black;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Navbar - matching login.html style */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgb(220, 255, 198);
  border-color: black;
  border-style: solid;
  border-bottom-width: 2px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: black;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid black;
  background-color: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn:hover {
  background-color: rgb(201, 255, 167);
  color: rgb(0, 0, 0);
}

/* Register wrapper */
.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 40px 20px;
  position: relative;
}

.container {
  background-color: white;
  border: 3px solid black;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 8px 8px 0px black;
  animation: slideIn 0.5s ease-out;
  position: relative;
  z-index: 10;
}

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

.header-section {
  text-align: center;
  margin-bottom: 30px;
}

.welcome-text {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
}

.subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.form-container h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid black;
  padding-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  transition: all 0.3s;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.input-group.focused label {
  color: rgb(76, 175, 80);
}

input {
  width: 100%;
  padding: 14px 40px 14px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid black;
  border-radius: 6px;
  background-color: rgb(250, 255, 245);
  transition: all 0.3s;
}

input:focus {
  outline: none;
  border-color: rgb(76, 175, 80);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}


.submit-btn {
  padding: 14px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: rgb(220, 255, 198);
  color: black;
  border: 2px solid black;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.submit-btn:hover {
  background-color: rgb(201, 255, 167);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px black;
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px black;
}

.btn-arrow {
  transition: transform 0.3s;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.submit-btn.loading {
  background-color: rgb(255, 235, 156);
  cursor: wait;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Shake animation for validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.input-group.shake {
  animation: shake 0.3s ease-in-out;
}

.input-group.shake input {
  border-color: #e74c3c;
}

.message {
  margin: 20px 0;
  padding: 15px;
  border-radius: 6px;
  font-weight: bold;
  border: 2px solid;
  animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background-color: rgb(220, 255, 198);
  color: #155724;
  border-color: rgb(76, 175, 80);
}

.message.error {
  background-color: #ffebee;
  color: #721c24;
  border-color: #e74c3c;
}

.login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.login-link a {
  color: rgb(76, 175, 80);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.login-link a:hover {
  border-bottom-color: rgb(76, 175, 80);
}

/* Decorative plants */
.decorative-plants {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.plant {
  position: absolute;
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.plant-1 {
  top: 15%;
  left: 10%;
  animation: float 3s ease-in-out infinite;
}

.plant-2 {
  top: 60%;
  right: 8%;
  animation: float 4s ease-in-out infinite 0.5s;
}

.plant-3 {
  bottom: 20%;
  left: 15%;
  animation: float 3.5s ease-in-out infinite 1s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 30px 25px;
    margin: 20px;
  }

  .welcome-text {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .navbar {
    padding: 10px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .plant {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    box-shadow: 4px 4px 0px black;
  }

  input {
    padding: 12px 35px 12px 12px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 1rem;
  }

  .decorative-plants {
    display: none;
  }
}