@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Oswald:wght@400;500&family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: url("../images/bg1.png") center / cover fixed;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ------- NAVBAR ------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 2.0), transparent);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  width: 100%;
  max-width: none;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 30px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: url("../images/logos/logo-bg-color.png");
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: scale(1.1);
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  /*background: rgba(255, 255, 255, 0.45);*/
  padding: 12px 30px;
  /*border-radius: 50px;*/
}

.nav-link {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover,
.nav-link.active {
  color: rgba(0, 0, 0, 0.7);
}

.nav-link.active svg {
  fill: white;
}

/* ------- NAVBAR ends here ------- */

.auth-buttons {
  display: flex;
  gap: 15px;
  margin-right: 30px;
}

.user-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

/* Main Auth Styles */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
}

.auth-container {
  /*SIGNUP*/
  width: 100%;
  max-width: 1100px;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.auth-container1 {
  /*LOGIN*/
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.welcome-text {
  margin-bottom: 40px;
}

.welcome-title {
  font-size: 4rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: #555;
  font-weight: 400;
}

.auth-form-wrapper {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.auth-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* PASSWORD INPUT CONTAINER (TOGGLE EYE TING) */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  width: 100%;
  padding-right: 50px; /* Make space for the toggle button */
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.password-toggle:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease;
}

/* Ensure the toggle button doesn't interfere with input focus */
.form-group input:focus + .password-toggle {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .password-toggle {
    right: 12px;
  }

  .password-input-container input {
    padding-right: 45px;
  }
}

.password-requirements {
  margin-top: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: left;
  display: none;
}

.password-requirements.show {
  display: block;
}

.requirement {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.requirement.valid {
  color: #51cf66;
}

.requirement:last-child {
  margin-bottom: 0;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
  text-align: left;
}

/* Added styling for password match message */
.password-match-message {
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
  text-align: left;
  font-weight: 500;
}

.auth-button {
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
}

.btn {
  /*SIGN UP BUTTON*/
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-signup {
  /*SIGN UP BUTTON*/
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.btn-signup:hover {
  /*SIGN UP BUTTON*/
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-login {
  background: #6366f1;
  color: white;
}

.btn-login:hover {
  background: #5855eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.auth-button:hover {
  background: #5856eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-switch {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.auth-switch a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: #5856eb;
  text-decoration: underline;
}

.reset-link {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 10px;
}

.reset-link a {
  color: #6366f1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.reset-link a:hover {
  color: #5856eb;
  text-decoration: underline;
}

/* OTP Specific Styles */
.otp-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1rem;
}

.otp-description span {
  color: #6366f1;
  font-weight: 600;
}

#otpCode {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
}

.resend-section {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.resend-section p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.resend-button {
  background: none;
  border: none;
  color: #6366f1;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-family: "Inter", sans-serif;
}

.resend-button:hover {
  color: #5856eb;
}

.resend-button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

.countdown {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Reset Password Specific Styles */
.reset-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.5;
}

/* Message Styles */
.message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.message.success {
  background: rgba(81, 207, 102, 0.2);
  color: #51cf66;
  border: 1px solid rgba(81, 207, 102, 0.3);
  display: block;
}

.message.error {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  display: block;
}

.message.info {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: block;
}

/* Loading Animation */
.loading {
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }

  .nav-menu {
    display: none;
  }

  .logo {
    margin-left: 10px;
  }

  .auth-buttons {
    margin-right: 10px;
  }

  .auth-main {
    padding: 100px 15px 20px;
  }

  .auth-form-wrapper {
    padding: 30px 25px;
  }

  .welcome-title {
    font-size: 2.5rem;
  }

  .auth-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 2rem;
  }

  .auth-title {
    font-size: 1.8rem;
  }

  .auth-form-wrapper {
    padding: 25px 20px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 15px;
  }

  .logo {
    margin-left: 5px;
  }

  .auth-buttons {
    margin-right: 5px;
  }
}

/* Header scroll effect */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* fade in animation */
.auth-form-wrapper {
  animation: fadeInUp 1s ease-out;
}

.welcome-text {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* ---------- FOOTER ---------- */

.footer {
  background: #333;
  color: white;
  padding: 60px 0 30px 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  background: url("../images/logos/logo-bg-BW.png");
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.footer-copyright {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-column-title {
  font-family: "Oswald";
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links-list a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links-list a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #ccc;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 0 20px;
  }

  .contact-form-card {
    padding: 30px 25px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .social-links {
    justify-content: center;
  }
}
