/* Auth buttons levo (Login) - skroz levo */
.auth-buttons-left {
  display: flex !important;
  gap: 10px !important;
  margin-right: 0 !important;
}

/* Auth buttons desno (Register) - skroz desno */
.auth-buttons-right {
  display: flex !important;
  gap: 10px !important;
  margin-left: 0 !important;
}

/* Button styles - INCREASED SIZE */
.auth-btn {
  padding: 16px 40px; /* Increased from 12px 32px */
  border-radius: 30px;
  font-size: 18px; /* Increased from 16px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  outline: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

/* Login Button - Premium Glass Effect */
.login-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
  color: #ff8c00;
  box-shadow: 
    0 4px 15px rgba(255, 140, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, #ff8c00, #ffd700, #ff6347);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}

.login-btn:hover {
  background: rgba(255, 140, 0, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(255, 140, 0, 0.4),
    0 0 30px rgba(255, 140, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn:hover::before {
  opacity: 1;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* Register Button - Premium Gradient with Glow */
.register-btn {
  background: linear-gradient(135deg, #ff8c00, #ff6347, #ff8c00);
  background-size: 200% 200%;
  color: #000;
  font-weight: 800;
  box-shadow: 
    0 6px 20px rgba(255, 140, 0, 0.4),
    0 0 20px rgba(255, 99, 71, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: gradientShift 3s ease infinite;
  position: relative;
}

.register-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  z-index: -1;
  filter: blur(15px);
  opacity: 0.6;
  transition: opacity 0.4s;
}

.register-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 35px rgba(255, 140, 0, 0.6),
    0 0 40px rgba(255, 99, 71, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  animation: gradientShift 1.5s ease infinite, pulse 2s ease-in-out infinite;
}

.register-btn:hover::after {
  opacity: 1;
  filter: blur(20px);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}


/* Active state for both buttons */
.auth-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* User Menu Button - POSITIONED ABOVE DROPDOWN */

.user-menu-button:hover 

/* POPUP NOTIFICATION - Styled as shown in design */
.popup-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #ff8c00;
  border-radius: 15px;
  padding: 18px 25px;
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 100001;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 140, 0, 0.3);
  animation: popupSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-width: 300px;
}

.popup-notification.show {
  display: flex;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.popup-notification.popup-success {
  border-color: #00ff7f;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 127, 0.3);
}

.popup-notification.popup-error {
  border-color: #ff6347;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 99, 71, 0.3);
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.popup-icon {
  font-size: 28px;
  animation: iconPop 0.5s ease-out;
}

@keyframes iconPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.popup-message {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* User Dropdown - EXACTLY BELOW USER MENU BUTTON */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px); /* 10px ispod button-a */
  right: 0;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 15px;
  padding: 15px 0;
  min-width: 240px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  margin-bottom: 10px;
}

.dropdown-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ff8c00, #ff6347);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dropdown-info {
  flex: 1;
}

.dropdown-name {
  color: #ff8c00;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.dropdown-email {
  color: #999;
  font-size: 13px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 140, 0, 0.2);
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #ffbfaa;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 15px;
}

.dropdown-item:hover {
  background: rgba(255, 140, 0, 0.1);
  color: #ff8c00;
  padding-left: 25px;
}

.dropdown-item.logout-item:hover {
  background: rgba(255, 99, 71, 0.2);
  color: #ff6347;
}

.dropdown-icon {
  font-size: 18px;
}

/* POPUP NOTIFICATION - Styled as shown in design */
.popup-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #ff8c00;
  border-radius: 15px;
  padding: 18px 25px;
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 100001;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 140, 0, 0.3);
  animation: popupSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-width: 300px;
}

.popup-notification.show {
  display: flex;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.popup-notification.popup-success {
  border-color: #00ff7f;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 127, 0.3);
}

.popup-notification.popup-error {
  border-color: #ff6347;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 99, 71, 0.3);
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.popup-icon {
  font-size: 28px;
  animation: iconPop 0.5s ease-out;
}

@keyframes iconPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.popup-message {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* Modal Overlay */
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.auth-modal {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  background: linear-gradient(45deg, #ff8c00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #ff8c00;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: rotate(90deg);
}

/* Form Styles */
.modal-form {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #ff8c00;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 8px;
  color: #f5f5f5;
  font-size: 15px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.password-hint {
  font-size: 12px;
  color: #cc7055;
  margin-top: 5px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff8c00;
}

.form-checkbox label {
  color: #ffbfaa;
  font-size: 14px;
  cursor: pointer;
}

.form-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #ff8c00, #ff6347);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
}

.form-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-link {
  text-align: center;
  margin-top: 20px;
  color: #ffbfaa;
  font-size: 14px;
}

.form-link a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: 600;
}

.form-link a:hover {
  text-decoration: underline;
}

/* Message Styles */
.error-message,
.success-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.error-message {
  background: rgba(255, 99, 71, 0.2);
  border: 1px solid #ff6347;
  color: #ff6347;
}

.success-message {
  background: rgba(0, 255, 127, 0.2);
  border: 1px solid #00ff7f;
  color: #00ff7f;
}

.error-message.show,
.success-message.show {
  display: block;
}

/* ✅ Inline error messages below input fields */

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Code Verification */
.code-container {
  display: none;
}

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 25px 0;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 8px;
  color: #ff8c00;
  transition: all 0.3s;
}

.code-input:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
  background: rgba(0, 0, 0, 0.7);
}

.resend-link {
  text-align: center;
  margin-top: 15px;
  color: #ffbfaa;
  font-size: 13px;
}

.resend-link a {
  color: #ff8c00;
  cursor: pointer;
  text-decoration: none;
}

.resend-link a:hover {
  text-decoration: underline;
}
