/* SHARED STYLES */

:root {
  --primary-color: #0c84fe;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 0.375rem;
  --border-radius-pill: 50px;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: #333;
  background-color: #fff;
  background-image: linear-gradient(
    to bottom,
    rgba(240, 245, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
}

.header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1030;
  transition: all 0.3s ease;
}

.header-glass.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #333;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  padding: 0.375rem 0.75rem;
  transition: all 0.25s ease;
}

.navbar .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

main {
  min-height: calc(100vh - 300px);
  padding-top: 40px;
}

.btn {
  font-weight: 500;
  padding: 0.4rem 1.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.btn-sm {
  padding: 0.3rem 1.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background-color: #0076e4;
  border-color: #0076e4;
}

.rounded-pill {
  border-radius: 50px !important;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.rounded-4 {
  border-radius: 0.75rem !important;
}

.card-body {
  padding: 2rem;
}

.form-control {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  font-size: 0.95rem;
  height: calc(2.5rem + 2px);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.15);
  border-color: var(--primary-color);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.95rem;
}

.form-check-label {
  color: #666;
  font-size: 0.95rem;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  padding: 0 0.75rem;
  height: calc(2.5rem + 2px);
}

.input-group .btn:focus {
  box-shadow: none;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-control:focus + .btn {
  border-color: var(--primary-color);
}

.input-group-text {
  padding: 0.5rem 0.75rem;
  height: calc(2.5rem + 2px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.75rem 0;
  color: #adb5bd;
  font-size: 0.75rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dee2e6;
  margin: 0 0.75rem;
}

.btn-google {
  border-color: #dee2e6;
  color: #333;
  background-color: #fff;
  font-weight: 500;
  border-radius: 0.375rem;
}

.btn-google:hover {
  background-color: #f8f9fa;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #dee2e6;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  color: #6c757d;
  border-color: #ced4da;
}

.footer {
  background-color: #111827;
  color: #ffffff;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-heading {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.footer-social .social-link:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.footer-social .social-link,
.footer-social .social-link:hover {
  text-decoration: none !important;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  margin-bottom: 0;
}

.footer-policy {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer-policy:hover {
  color: var(--primary-color);
}

.payment-methods {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
}

.payment-methods i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  height: 45px;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.footer-newsletter .btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  height: 45px;
  font-weight: 500;
}

footer a:hover {
  color: var(--info-color) !important;
  text-decoration: underline;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.success-checkmark {
  padding: 20px 0;
}

.success-circle {
  animation: scaleIn 0.3s ease-out forwards;
  transform: scale(0);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.success-checkmark svg {
  animation: fadeInCheck 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInCheck {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.password-requirements {
  font-size: 0.85rem;
}

.password-requirements ul {
  margin-bottom: 0;
}

.password-requirements li {
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
}

.navbar-toggler {
  padding: 0.25rem;
  border: none;
  background: transparent;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.menu-icon-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.menu-icon-line {
  display: block;
  height: 2px;
  width: 24px;
  background: #333;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  transform-origin: center center;
}

.navbar-toggler[aria-expanded="true"] .menu-icon-wrapper {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .menu-icon-line.top-line {
  transform: translateY(9px);
}

.navbar-toggler[aria-expanded="true"] .menu-icon-line.middle-line {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .menu-icon-line.bottom-line {
  transform: translateY(-9px) rotate(90deg);
}

button.navbar-toggler[aria-expanded="true"] {
  z-index: 1050;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    padding: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1000;
  }

  .navbar-collapse.show {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav {
    padding: 0 15px;
  }

  .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
  }

  .navbar-collapse.show .nav-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .navbar-collapse.show .nav-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }

  .navbar-collapse.show .nav-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .navbar-collapse.show .nav-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
  }

  .navbar-collapse.show .nav-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  .navbar-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    display: block;
    text-align: left;
    color: #444;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--primary-color);
    padding-left: 0.25rem;
  }

  .navbar-nav .nav-link.active {
    color: #0c84fe;
    font-weight: 500;
  }

  .mobile-auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0 15px 1.2rem 15px;
    margin-top: 0.5rem;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-collapse.show .mobile-auth-buttons {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-auth-buttons .btn {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.65rem 0.5rem;
    font-weight: 500;
    display: block;
  }

  .mobile-auth-buttons .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
  }

  .mobile-auth-buttons .btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    padding: 0;
    z-index: 1000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .navbar-collapse.show {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav {
    padding: 0.75rem 1.5rem;
  }

  .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
  }

  .navbar-collapse.show .nav-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .navbar-collapse.show .nav-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }

  .navbar-collapse.show .nav-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .navbar-collapse.show .nav-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
  }

  .navbar-collapse.show .nav-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    display: block;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
  }
}

@media (max-width: 991.98px) {
  .mobile-auth-buttons .btn-link {
    text-decoration: none;
  }
}
