/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

/* General Page Styling */
body {
  font-family: 'ubuntu', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('../images/login-bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

/* Register Container */
.register-container {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.7);
  width: 350px;
  color: white;
  animation: fadeIn 0.8s ease-in-out;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease-in-out;
}

/* Title */
.register-box h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #ff9d5c;
  letter-spacing: 0.8px;
}

/* Error Message */
p[style*='color: red'] {
  font-size: 13px;
  text-align: center;
  margin-bottom: 15px;
  background-color: rgba(255, 0, 0, 0.1);
  padding: 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group .icons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 14px;
}

.input-group input {
  width: 80%;
  padding: 12px 15px 12px 50px;
  border-radius: 30px;
  border: 1px solid #555;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  outline: none;
  box-shadow: inset 0px 2px 5px rgba(0,0,0,0.2);
}

.input-group input::placeholder {
  color: #bbb;
}

.input-group input:focus {
  border-color: #ff9d5c;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0px 0px 12px rgba(255, 157, 92, 0.6);
}

/* Password Container */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Lock Icon */
.password-container .fa-lock {
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
}

/* Eye Icon */
.password-container .toggle-password {
  right: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.password-container .toggle-password:hover {
  color: #f8944b;
}

/* Register Button */
.btn {
  width: 100%;
  padding: 12px;
  background-color: #f8944b;
  border-radius: 30px;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  box-shadow: 0px 4px 10px rgba(255, 157, 92, 0.4);
}

.btn:hover {
  background-color: #e07b3a;
  box-shadow: 0px 0px 15px rgba(248, 148, 75, 0.8);
  transform: translateY(-2px);
}
 
/* Already have an account Link */
.register-box p {
  font-size: 13px;
  text-align: center;
  color: #ccc;
  margin-top: 15px;
}

.register-box p a {
  color: #ff9d5c;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.register-box p a:hover {
  text-decoration: underline;
  color: #ffb085;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .register-container {
    width: 290px;
    padding: 30px;
  }

  .register-box h2 {
    font-size: 24px;
  }

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