/*
 * Author: AZ AI Designer
 * Date: 2026
 * Description: Premium modern styles for HealthCheck Auth Flow
 * Source: Aligned with public/assets/app/css/theme.css tokens
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --auth-primary: #059344;
  --auth-primary-hover: #047837;
  --auth-bg-light: #e6f4ea;
  --auth-text-dark: #1a1f24;
  --auth-text-gray: #64748b;
  --auth-border: #e2e8f0;
  --auth-radius-lg: 32px;
  --auth-radius-md: 12px;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background-color: var(--auth-bg-light);
  overflow-x: hidden;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--auth-bg-light);
}

.auth-card-split {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: #ffffff;
  border-radius: var(--auth-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* Left Branding Section */
.auth-left {
  flex: 1;
  background: var(--auth-primary);
  padding: 4rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 2;
}

.auth-logo-box {
  background: #ffffff;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.auth-brand-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.auth-brand-tagline {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 4rem;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.feature-item i {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* Right Form Section */
.auth-right {
  flex: 1;
  padding: 4rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right-content {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-welcome-subtitle {
  color: var(--auth-text-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.form-label-custom {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--auth-text-dark);
  margin-bottom: 0.6rem;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i:not(.toggle-password) {
  position: absolute;
  left: 1.2rem;
  color: var(--auth-text-gray);
  font-size: 1.3rem;
}

.form-control-custom {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
  color: var(--auth-text-dark);
}

.form-control-custom::placeholder {
  color: #94a3b8;
}

.form-control-custom:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(5, 147, 68, 0.08);
}

.toggle-password {
  position: absolute;
  right: 1.2rem;
  cursor: pointer;
  color: var(--auth-text-gray);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--auth-primary);
}

.btn-sign-in {
  width: 100%;
  background: var(--auth-primary);
  color: #ffffff;
  border: none;
  padding: 1.1rem;
  border-radius: var(--auth-radius-md);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 1.5rem;
}

.btn-sign-in:hover {
  background: var(--auth-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(5, 147, 68, 0.3);
}

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

.signup-link {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.signup-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Utilities */
.text-center {
  text-align: center !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mt-5 {
  margin-top: 3rem !important;
}
.text-muted {
  color: var(--auth-text-gray) !important;
}

/* OTP Specifics (Maintained for consistency) */
.otp-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.otp-field {
  width: 52px;
  height: 64px;
  border-radius: var(--auth-radius-md);
  border: 1.5px solid var(--auth-border);
  background: #ffffff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-field:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(5, 147, 68, 0.1);
  outline: none;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .auth-card-split {
    max-width: 900px;
  }
  .auth-left,
  .auth-right {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }
  .auth-card-split {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
  }
  .auth-left {
    padding: 3rem 2rem;
    text-align: center;
  }
  .auth-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .auth-right {
    padding: 3rem 2rem;
  }

  .auth-brand-title {
    font-size: 2.25rem;
  }
  .auth-features {
    align-items: flex-start;
    display: inline-flex;
    margin-top: 2rem;
  }
}

.spin-animation {
  animation: spin 1s linear infinite;
}

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

.opacity-75 {
  opacity: 0.75 !important;
}

.alertify-notifier .ajs-message {
  color: #fff !important;
}
