@font-face {
  font-family: 'Comfortaa';
  src: url('../assets/fonts/comfortaa-regular.woff2') format('woff2'),
    url('../assets/fonts/comfortaa-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../assets/fonts/comfortaa-bold.woff2') format('woff2'),
    url('../assets/fonts/comfortaa-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

body {
  color: white;
  font-family: 'Comfortaa', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 50%, #d4d8e8 100%);
  color: #1a1a2e;
}

.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top: 4px solid #5638e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  color: white;
  font-size: 16px;
  margin: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background-color: rgba(10, 13, 24, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #5638E5;
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .navbar {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #7c5cef;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 45px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

body.light-theme .nav-links a {
  color: #1a1a2e;
}

.nav-links a:hover {
  color: #543fce;
}

body.light-theme .nav-links a:hover {
  color: #5638E5;
}

.nav-links a.active {
  color: #543fce;
  font-weight: bold;
}

body.light-theme .nav-links a.active {
  color: #5638E5;
}

.signup-hamburger {
  display: flex;
  align-items: center;
  gap: 30px;
}

.signup-btn {
  background-color: #0e0634;
  border: 2px solid #5638e5;
  border-radius: 7px;
  padding: 10px 20px;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

body.light-theme .signup-btn {
  background-color: #5638E5;
  border-color: #4325c2;
  color: white;
}

.signup-btn:hover {
  background-color: #5638E5;
}

body.light-theme .signup-btn:hover {
  background-color: #4325c2;
}

.hamburger {
  width: 25px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger div {
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

body.light-theme .hamburger div {
  background-color: #1a1a2e;
}

.main-content {
  flex: 1;
  position: relative;
  z-index: 5;
}

.signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: calc(100vh - 300px);
}

.card {
  background-color: rgba(84, 63, 206, 0);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid #5638E5;
  padding: 40px;
  width: 400px;
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .card {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #7c5cef;
}

.card h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  font-size: 28px;
  transition: color 0.3s ease;
}

body.light-theme .card h2 {
  color: #1a1a2e;
}

.profile-picture-container {
  margin-bottom: 25px;
  text-align: center;
}

.profile-picture-container label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: #fff;
  text-align: left;
  transition: color 0.3s ease;
}

body.light-theme .profile-picture-container label {
  color: #1a1a2e;
}

.profile-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: hsla(0, 0%, 0%, 0);
  border: 2px solid #5638e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.profile-image:hover {
  border-color: #4325c2;
}

.profile-image:focus {
  outline: 2px solid #5638e5;
  outline-offset: 2px;
}

.profile-image i {
  font-size: 60px;
  color: #5638e5;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn {
  background-color: #5638e5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.upload-btn:hover {
  background-color: #4325c2;
}

.upload-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
}

.file-info {
  margin-top: 8px;
  text-align: center;
}

.file-info small {
  color: #aaa;
  font-size: 12px;
  transition: color 0.3s ease;
}

body.light-theme .file-info small {
  color: #6b6b7f;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.input-icon-img {
  width: 25px;
  height: 25px;
  opacity: 0.8;
}

.input-group {
  margin-bottom: 15px;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #fff;
  transition: color 0.3s ease;
}

body.light-theme .input-group label {
  color: #1a1a2e;
}

.input-group input {
  width: 100%;
  padding: 15px 10px 15px 42px;
  border: 1.5px solid #7157f5;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .input-group input {
  background-color: #ffffff;
  border-color: #d4d8e8;
  color: #1a1a2e;
}

.input-group input:focus {
  outline: none;
  border-color: #5638e5;
}

.input-group input.error {
  border-color: #ff0000;
}

.error-message {
  color: #ff0000;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  display: block;
}

.error-message.error-style {
  color: #ff0000;
}

.btn {
  width: 100%;
  padding: 15px;
  background-color: #5638e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 5px;
}

.btn:hover {
  background-color: #4325c2;
  transform: translateY(-2px);
}

.btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background-color: transparent;
  border: 1px solid #5638e5;
  color: #5638e5;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-color: #5638e51a;
}

.secondary-btn:disabled {
  border-color: #666;
  color: #666;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #0a0d18;
  margin: auto;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  border: 2px solid #5638e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .modal-content {
  background-color: #ffffff;
  border-color: #7c5cef;
}

.error-modal-content {
  max-width: 400px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  transition: border-color 0.3s ease;
}

body.light-theme .modal-header {
  border-bottom-color: #d4d8e8;
}

.modal-header h3 {
  margin: 0;
  color: #fff;
  transition: color 0.3s ease;
}

body.light-theme .modal-header h3 {
  color: #1a1a2e;
}

.close-modal,
.close-error-modal {
  color: #aaa;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.close-modal:hover,
.close-error-modal:hover {
  color: #fff;
}

body.light-theme .close-modal:hover,
body.light-theme .close-error-modal:hover {
  color: #1a1a2e;
}

.modal-body {
  padding: 20px;
}

.cropper-container {
  width: 100%;
  height: 300px;
  background-color: #000;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
}

.cropper-container.loading::after {
  content: "Loading image...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  z-index: 10;
}

#image-cropper {
  width: 100%;
  height: 100%;
  background-color: #000;
}

.cropper-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.zoom-value {
  text-align: center;
  color: #aaa;
  transition: color 0.3s ease;
}

body.light-theme .zoom-value {
  color: #6b6b7f;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #5638e5;
  background-color: transparent;
  color: #5638e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background-color: #5638e51a;
}

.icon-btn:disabled {
  border-color: #666;
  color: #666;
  cursor: not-allowed;
}

#zoom-slider {
  width: 200px;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #333;
  outline: none;
  transition: background-color 0.3s ease;
}

body.light-theme #zoom-slider {
  background: #d4d8e8;
}

#zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5638e5;
  cursor: pointer;
}

#zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5638e5;
  cursor: pointer;
  border: none;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  transition: border-color 0.3s ease;
}

body.light-theme .modal-footer {
  border-top-color: #d4d8e8;
}

.cropper-view-box {
  border: 2px solid #5638e5 !important;
  border-radius: 50% !important;
}

.cropper-face {
  background-color: transparent !important;
}

.cropper-dashed {
  border-color: rgba(86, 56, 229, 0.5) !important;
}

footer {
  background-color: rgba(10, 13, 24, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid #2C2F45;
  padding: 40px 50px;
  font-family: 'Comfortaa', sans-serif;
  color: white;
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme footer {
  background-color: rgba(255, 255, 255, 0.9);
  border-top-color: #d4d8e8;
  color: #1a1a2e;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-section {
  margin-bottom: 20px;
  flex: 1;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #6f54f8;
  transition: color 0.3s ease;
}

body.light-theme .footer-section h3 {
  color: #5638E5;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  padding: 2px 0;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
}

body.light-theme .footer-links a {
  color: #1a1a2e;
}

.footer-links a:hover {
  color: #5638e5;
  text-decoration: none;
}

.footer-separator {
  width: 100%;
  height: 1px;
  background-color: #1a1f36;
  margin: 20px 0;
  transition: background-color 0.3s ease;
}

body.light-theme .footer-separator {
  background-color: #d4d8e8;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #888;
  transition: color 0.3s ease;
}

body.light-theme .copyright {
  color: #6b6b7f;
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #0a0d18;
    padding: 20px;
    z-index: 100;
    border-bottom: 1px solid #5638e5;
  }

  body.light-theme .nav-links.active {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: #7c5cef;
  }

  .card {
    padding: 25px;
    width: 90%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    width: 100%;
  }

  .cropper-container {
    height: 250px;
  }

  .zoom-controls {
    flex-direction: column;
    gap: 15px;
  }

  #zoom-slider {
    width: 100%;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .modal-footer .btn,
  .modal-footer .secondary-btn {
    width: 100%;
  }
}

*:focus {
  outline: 2px solid #5638e5;
  outline-offset: 2px;
}

button:focus,
input:focus {
  outline: 2px solid #5638e5;
  outline-offset: 1px;
}

.modal.show {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal.show .modal-content {
  animation: slideIn 0.3s ease-out;
}

.modal.show {
  animation: fadeIn 0.3s ease-out;
}