/* HOTEL OPS - Premium Auth Pages */

.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

/* Animated background orbs */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}

.auth-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #3182ce 0%, transparent 70%);
  top: -120px; left: -80px;
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #805ad5 0%, transparent 70%);
  bottom: -100px; right: 10%;
  animation-delay: -6s;
}

.auth-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #38b2ac 0%, transparent 70%);
  top: 40%; right: -60px;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.auth-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Left panel */
.auth-left {
  flex: 1.1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
  color: #fff;
}

.auth-brand {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  animation: logoPulse 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0,0,0,.2); }
  50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(49,130,206,.3); }
}

.auth-brand h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #bee3f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand .tagline {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.7;
  max-width: 360px;
  line-height: 1.5;
  margin-top: 16px;
  letter-spacing: 0.3px;
  animation: fadeSlideUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Visual showcase — no data/metrics */
.auth-showcase {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 56px auto 0;
  animation: fadeSlideUp 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-showcase-sm {
  width: 260px;
  height: 260px;
  margin-top: 64px;
}

.showcase-glow {
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, rgba(49,130,206,.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.showcase-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  animation: ringRotate 20s linear infinite;
}

.showcase-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.08);
  animation: ringRotate 30s linear infinite reverse;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.showcase-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card i {
  font-size: 1.4rem;
  opacity: 0.9;
}

.showcase-card:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 16px 48px rgba(49,130,206,.25);
  border-color: rgba(255,255,255,.2);
}

.showcase-card-1 {
  top: 12%; left: 50%;
  transform: translateX(-50%);
  animation: floatCard1 6s ease-in-out infinite;
}

.showcase-card-2 {
  bottom: 18%; left: 4%;
  animation: floatCard2 7s ease-in-out infinite;
}

.showcase-card-3 {
  bottom: 18%; right: 4%;
  animation: floatCard3 6.5s ease-in-out infinite;
}

.showcase-card-4 {
  top: 42%; left: 50%;
  transform: translateX(-50%);
  padding: 20px 24px;
  background: rgba(255,255,255,.12);
  animation: floatCard4 5s ease-in-out infinite;
}

.showcase-card-4 i { font-size: 1.8rem; }

@keyframes floatCard1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes floatCard4 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-8px) scale(1.03); }
}

.showcase-icon-large {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  animation: iconFloat 5s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

@keyframes iconFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.auth-footnote {
  margin-top: 48px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.45;
  animation: fadeSlideUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Right panel */
.auth-right {
  flex: 0.9;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 24px 80px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.5) inset;
  animation: cardEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a365d, #3182ce, #805ad5, #3182ce, #1a365d);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeSlideUp 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-card-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 8px;
}

.auth-card-header p {
  color: #718096;
  font-size: 0.9rem;
}

.auth-card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ebf8ff, #bee3f8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #2b6cb0;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Floating inputs */
.auth-field {
  position: relative;
  margin-bottom: 22px;
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-field:nth-of-type(1) { animation-delay: 0.4s; }
.auth-field:nth-of-type(2) { animation-delay: 0.5s; }

.auth-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f7fafc;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #2d3748;
}

.auth-input:focus {
  outline: none;
  border-color: #3182ce;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49,130,206,.12);
  transform: translateY(-1px);
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

.auth-field:focus-within .auth-input-icon { color: #3182ce; }

.auth-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.auth-input-toggle:hover { color: #3182ce; }

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4a5568;
  cursor: pointer;
}

.auth-check input {
  width: 18px; height: 18px;
  accent-color: #1a365d;
  cursor: pointer;
}

.auth-link {
  font-size: 0.875rem;
  color: #3182ce;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.auth-link:hover { color: #1a365d; }

/* Primary button */
.auth-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
  background-size: 200% 200%;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeSlideUp 0.6s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 4px 20px rgba(26,54,93,.35);
}

.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,54,93,.45);
  background-position: 100% 100%;
}

.auth-btn:hover::before { transform: translateX(100%); }

.auth-btn:active { transform: translateY(0); }

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

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

.auth-btn .btn-loader {
  display: none;
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.auth-btn.loading .btn-text { display: none; }
.auth-btn.loading .btn-loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Error alert */
.auth-error {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  color: #c53030;
  font-size: 0.875rem;
  margin-top: 16px;
  animation: shake 0.5s ease;
}

.auth-error.show { display: flex; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Demo users */
.auth-demo {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #edf2f7;
  animation: fadeSlideUp 0.6s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-demo-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a0aec0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-demo-title::before,
.auth-demo-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.auth-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-demo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.auth-demo-btn i {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.auth-demo-btn.admin i { background: #ebf8ff; color: #2b6cb0; }
.auth-demo-btn.manager i { background: #faf5ff; color: #805ad5; }
.auth-demo-btn.staff i { background: #f0fff4; color: #38a169; }
.auth-demo-btn.reception i { background: #fffaf0; color: #dd6b20; }

.auth-demo-btn:hover {
  border-color: #3182ce;
  background: #f7fafc;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(49,130,206,.12);
}

.auth-demo-btn:hover i { transform: scale(1.1) rotate(-5deg); }

.auth-demo-btn:active { transform: translateY(-1px); }

/* Success state (forgot password) */
.auth-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeSlideUp 0.6s ease both;
}

.auth-success.show { display: block; }

.auth-success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #276749;
  animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #718096;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.auth-back-link:hover { color: #3182ce; gap: 12px; }

/* Floating particles */
.auth-particles span {
  position: fixed;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  animation: particleRise linear infinite;
  z-index: 0;
}

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

/* Mobile */
@media (max-width: 992px) {
  .auth-page { flex-direction: column; }
  .auth-left {
    padding: 40px 28px 24px;
    min-height: auto;
    text-align: center;
  }
  .auth-brand h1 { font-size: 2rem; }
  .auth-brand .tagline { margin-left: auto; margin-right: auto; }
  .auth-showcase {
    width: 280px;
    height: 220px;
    margin-top: 32px;
  }
  .auth-showcase-sm { width: 200px; height: 200px; margin-top: 32px; }
  .showcase-card-2 { left: 0; }
  .showcase-card-3 { right: 0; }
  .auth-footnote { margin-top: 24px; }
  .auth-right { padding: 0 20px 40px; flex: 1; }
  .auth-card { padding: 32px 24px; border-radius: 20px; }
}

@media (max-width: 480px) {
  .auth-demo-grid { grid-template-columns: 1fr; }
  .auth-card-header h2 { font-size: 1.5rem; }
}
