/**
 * RZF Medis - Authentication CSS (Login Page)
 */

.auth-page {
  min-height: 100vh;
  display: flex;
  background-color: var(--color-bg-app);
}

/* Left Hero Banner */
.auth-hero {
  flex: 1;
  background: #1871AB;
  background: linear-gradient(145deg, #1871AB 0%, #115886 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  color: var(--color-white);
  min-height: 100vh;
}

.auth-hero-deco-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 54%;
  max-width: 380px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: floatSubtle 8s ease-in-out infinite alternate;
}

.auth-hero-deco-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42%;
  max-width: 290px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: floatSubtleRev 9s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.02); }
}

@keyframes floatSubtleRev {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(6px) scale(1.01); }
}

.auth-hero-content {
  position: relative;
  z-index: 5;
  max-width: 540px;
  text-align: center;
  padding: 20px;
}

.auth-hero-title {
  color: var(--color-white);
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.975rem, 1.25vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
}

/* Right Form Section */
.auth-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background-color: #F8FAFC;
  min-height: 100vh;
}

.auth-card {
  width: 100%;
  max-width: 530px;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 50px 46px;
  box-shadow: 0 10px 40px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  animation: fadeIn 0.4s ease-out;
}

.auth-brand {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.auth-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 26px;
}

.auth-submit-btn {
  height: 48px;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(24, 113, 171, 0.28);
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(24, 113, 171, 0.38);
  transform: translateY(-1px);
}

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

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert-error {
  background-color: var(--color-danger-bg);
  border: 1px solid #FECACA;
  color: #B91C1C;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .auth-page {
    flex-direction: column;
  }
  
  .auth-hero {
    flex: none;
    min-height: 280px;
    padding: 40px 20px;
  }

  .auth-hero-deco-top {
    width: 60%;
    max-width: 260px;
  }

  .auth-hero-deco-bottom {
    width: 50%;
    max-width: 200px;
  }

  .auth-hero-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .auth-hero-desc {
    font-size: 0.9rem;
  }

  .auth-form-container {
    flex: 1;
    min-height: auto;
    padding: 30px 16px 50px;
  }

  .auth-card {
    padding: 32px 24px;
    max-width: 400px;
  }
}
