.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 16px;
}
.auth-modal.active {
  pointer-events: all;
}
.auth-modal.active .overlay {
  opacity: 1;
}
.auth-modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}
.auth-modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: 0.3s ease;
}
[data-theme=light] .auth-modal .overlay {
  background: rgba(0, 0, 0, 0.4);
}
.auth-modal .modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #fff;
  transform: scale(0.95);
  opacity: 0;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
[data-theme=light] .auth-modal .modal-content {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.auth-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme=light] .auth-modal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.auth-modal .modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.auth-modal .modal-header .close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.auth-modal .modal-header .close-btn:hover {
  color: #fff;
}
[data-theme=light] .auth-modal .modal-header .close-btn {
  color: rgba(0, 0, 0, 0.5);
}
[data-theme=light] .auth-modal .modal-header .close-btn:hover {
  color: #000;
}
.auth-modal .modal-body {
  padding: 24px 20px;
  position: relative;
  min-height: 250px;
}
.auth-modal .auth-view {
  display: none;
  animation: fadeIn 0.3s ease;
}
.auth-modal .auth-view.active {
  display: block;
}
.auth-modal .form-group {
  margin-bottom: 16px;
}
.auth-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}
[data-theme=light] .auth-modal .form-group label {
  color: rgba(0, 0, 0, 0.7);
}
.auth-modal .form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 0.875rem;
  transition: 0.2s ease;
  outline: none;
}
.auth-modal .form-group input:focus {
  border-color: #2d6cdf;
  background: rgba(45, 108, 223, 0.05);
}
[data-theme=light] .auth-modal .form-group input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
}
[data-theme=light] .auth-modal .form-group input:focus {
  border-color: #2d6cdf;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}
.auth-modal .row-group {
  display: flex;
  gap: 12px;
}
.auth-modal .row-group .col {
  flex: 1;
}
.auth-modal .avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-modal .avatar-upload input[type=file] {
  display: none;
}
.auth-modal .avatar-upload .avatar-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme=light] .auth-modal .avatar-upload .avatar-preview {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}
.auth-modal .avatar-upload .avatar-preview #avatarDefaultIcon {
  font-size: 2.375rem;
  color: rgba(255, 255, 255, 0.3);
}
[data-theme=light] .auth-modal .avatar-upload .avatar-preview #avatarDefaultIcon {
  color: rgba(0, 0, 0, 0.25);
}
.auth-modal .avatar-upload .avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-modal .avatar-upload .avatar-preview .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.2s ease;
}
.auth-modal .avatar-upload .avatar-preview .overlay i {
  color: #fff;
  font-size: 1.5rem;
}
.auth-modal .avatar-upload .avatar-preview:hover .overlay {
  opacity: 1;
}
.auth-modal .avatar-upload .avatar-label {
  font-size: 0.8125rem;
  color: #2d6cdf;
  cursor: pointer;
  font-weight: 500;
}
.auth-modal .avatar-upload .avatar-label:hover {
  text-decoration: underline;
}
.auth-modal .submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #2d6cdf;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 8px;
}
.auth-modal .submit-btn:hover {
  background: #2458b8;
  transform: translateY(-1px);
}
.auth-modal .switch-view {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
[data-theme=light] .auth-modal .switch-view {
  color: rgba(0, 0, 0, 0.6);
}
.auth-modal .switch-view a {
  color: #2d6cdf;
  text-decoration: none;
  font-weight: 500;
}
.auth-modal .switch-view a:hover {
  text-decoration: underline;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}