.auth-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.auth-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: auth-orb-float 20s ease-in-out infinite;
}

.auth-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.auth-bg-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.auth-bg-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes auth-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(-50px, -20px) scale(1.02); }
}

.auth-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.auth-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: auth-particle-rise linear infinite;
}

@keyframes auth-particle-rise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.auth-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.auth-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  animation: auth-card-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes auth-card-enter {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.auth-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
  animation: auth-logo-pulse 3s ease-in-out infinite;
}

@keyframes auth-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
  50% { filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5)); }
}

.auth-logo img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

.auth-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-form {
  position: relative;
  z-index: 1;
}

.auth-input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.auth-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.auth-input-group:focus-within label {
  color: #3b82f6;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: color 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: #3b82f6;
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: all 0.3s ease;
  outline: none;
}

.auth-input::placeholder {
  color: #475569;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.auth-input:focus {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-input-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 2;
}

.auth-input-toggle:hover {
  color: #94a3b8;
}

.auth-input-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-company-select {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}

.auth-company-select option {
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem;
}

.auth-company-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.07);
}

.auth-company-select:focus {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-btn {
  position: relative;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auth-btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.auth-btn-loading .auth-btn-text {
  opacity: 0;
}

.auth-btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: auth-btn-spin 0.7s linear infinite;
}

@keyframes auth-btn-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.auth-link a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.auth-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.auth-link a:hover {
  color: #3b82f6;
}

.auth-link a:hover::after {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
  font-size: 0.8rem;
  color: #475569;
}

.auth-footer a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #60a5fa;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  animation: auth-status-enter 0.3s ease forwards;
}

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

.auth-status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.auth-status--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.auth-status--info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.auth-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  display: none;
}

.auth-checkbox-mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox-mark {
  background: #3b82f6;
  border-color: #3b82f6;
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.auth-checkbox-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.auth-forgot-link {
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-forgot-link:hover {
  color: #60a5fa;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-bg-orb--1 {
    width: 400px;
    height: 400px;
  }

  .auth-bg-orb--2 {
    width: 300px;
    height: 300px;
  }

  .auth-bg-orb--3 {
    width: 250px;
    height: 250px;
  }
}
