@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: "Prompt", serif;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

.container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 360px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-sizing: border-box;
}

.registerTitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3748;
  position: relative;
  margin-top: 0;
}

.registerTitle:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: #6366f1;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group {
  margin-bottom: 12px;
}

label {
  font-size: 13px;
  color: #4a5568;
  text-align: left;
  margin-bottom: 4px;
  font-weight: 500;
  display: block;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f8fafc;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #a0aec0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  outline: none;
}

.password-toggle:hover {
  color: #6366f1;
}

button[type="submit"] {
  background-color: #6366f1;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-top: 5px;
}

button[type="submit"]:hover {
  background-color: #4f46e5;
}

.Signin {
  font-size: 13px;
  color: #718096;
  margin-top: 15px;
  margin-bottom: 0;
}

.Signin a {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}

.Signin a:hover {
  text-decoration: underline;
}

/* Error message styling */
#errorMessage {
  font-size: 12px;
  margin: -5px 0 10px;
  text-align: left;
}

/* Social buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

.social-btn:hover {
  opacity: 0.9;
}

.social-btn i {
  margin-right: 10px;
  font-size: 16px;
}

.google-btn {
  background-color: #DB4437;
}

.line-btn {
  background-color: #06C755;
}

/* Separator */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.separator span {
  padding: 0 10px;
  color: #718096;
  font-size: 12px;
}


/* Logo positioning */
.logo-container {
  position: fixed;
  top: 20px;
  left: 30px;
  z-index: 1000;
}

.logo-container p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}


/* Media query for small screens */
@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;  /* Add padding at the top for the logo */
  }
  
  .logo-container {
    position: static;  /* Remove fixed positioning */
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    order: 1;
  }
  
  .logo-container p {
    font-size: 28px;  /* Slightly larger font on mobile */
  }
  
  .container {
    order: 2;
    width: 90%;
    max-width: 360px;
    margin-top: 10px;
  }
}

/* Smaller screens adjustments */
@media (max-width: 480px) {
  body {
    padding-top: 30px;
  }
  
  .logo-container {
    margin-bottom: 25px;
  }
  
  .logo-container p {
    font-size: 24px;
  }
  
  .container {
    padding: 15px;
    border-radius: 15px;
  }
}