@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Inter:wght@300;400;500;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: rgb(30, 28, 28);
  font-family: "Inter", sans-serif;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.signup-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.signup-form,
.profile-confirm {
  background: rgba(24, 24, 26, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeInUp 0.3s ease-out;
}

.signup-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signup-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #b0b3b8;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 0.8rem; /* Adjusted padding for toggle */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #0078f2;
  box-shadow: 0 0 8px rgba(0, 120, 242, 0.5);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center; /* Align toggle with input */
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b0b3b8;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #ffffff;
}

.error {
  display: block;
  color: #ff4655;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: linear-gradient(45deg, #15438d, #1e5bb8);
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(45deg, #0f3470, #15438d);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21, 67, 141, 0.6);
}

.btn-primary:disabled {
  background: #555;
  cursor: not-allowed;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-secondary {
  width: 100%;
  padding: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #6c757d;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.signup-footer {
  margin-top: 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #b0b3b8;
}

.signup-footer a {
  color: #0078f2;
  text-decoration: none;
}

.signup-footer a:hover {
  text-decoration: underline;
  color: #00b3ff;
}

.profile-details {
  margin-bottom: 2rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "Inter", sans-serif;
}

.field-label {
  font-weight: 600;
  color: #ffffff;
}

.field-label i {
  margin-right: 0.5rem;
  color: #b0b3b8;
}

.field-value {
  color: #b0b3b8;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .signup-form,
  .profile-confirm {
    padding: 1.5rem;
    max-width: 90%;
  }

  .signup-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .signup-subtitle {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .signup-container {
    padding: 1rem;
  }

  .signup-form,
  .profile-confirm {
    padding: 1rem;
  }

  .form-group input {
    padding: 0.7rem 2.5rem 0.7rem 0.7rem;
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

input:focus,
.btn-primary:focus,
.btn-secondary:focus,
.signup-footer a:focus {
  outline: 2px solid #4ca8c9;
  outline-offset: 2px;
}
