/* ── auth-pages.css ── Crystal Light Theme for Meeteams ── */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  background: #ffffff;
  display: flex;
  overflow: hidden;
}

/* ── Split Container ── */
.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left Panel ── */
.auth-panel-left {
  flex: 0 0 44%;
  background: linear-gradient(160deg, #064e3b 0%, #065f46 50%, #047857 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px;
}

/* Decorative blobs */
.auth-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-deco--1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.07);
  top: -100px;
  right: -80px;
  animation: floatBlob 8s ease-in-out infinite;
}

.auth-deco--2 {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.05);
  bottom: -60px;
  left: -50px;
  animation: floatBlob 10s ease-in-out infinite reverse;
}

.auth-deco--3 {
  width: 140px;
  height: 140px;
  background: rgba(16, 185, 129, 0.12);
  top: 35%;
  left: 8%;
  animation: floatBlob 7s ease-in-out infinite 1s;
}

.auth-deco--4 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  bottom: 25%;
  right: 15%;
  animation: floatBlob 9s ease-in-out infinite 2s;
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(12px, -18px);
  }
}

/* Dots overlay */
.auth-dots-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Panel content */
.auth-panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 360px;
  animation: fadeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.auth-panel-icon {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-panel-icon i {
  font-size: 32px;
  color: #fff;
}

.auth-panel-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.auth-panel-content p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

/* Feature pills */
.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.auth-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-feature-pill i {
  font-size: 11px;
  color: #fef3c7;
}

/* ── Right Panel ── */
.auth-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #ffffff;
  position: relative;
  overflow-y: auto;
}

.auth-panel-right::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at 100% 0%, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: fadeSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Logo ── */
.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo img {
  max-width: 250px;
  height: auto;
}

/* ── Headings ── */
.auth-form-wrapper h2 {
  color: #14532d;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  text-align: center;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 32px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* ── Form Groups ── */
.auth-form-group {
  margin-bottom: 22px;
  position: relative;
}

.auth-form-group label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  font-size: 15px;
  transition: color 0.3s;
  z-index: 2;
}

.auth-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0;
  color: #1e1b4b;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  outline: none;
  height: auto;
}

.auth-input-wrap input::placeholder {
  color: #9ca3af;
}

.auth-input-wrap input:hover {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.auth-input-wrap input:focus {
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
  border-left: 3px solid #16a34a;
  padding-left: 44px;
}

.auth-input-wrap:focus-within .input-icon {
  color: #16a34a;
}

/* ── Password help ── */
.auth-form-group .pwd-help {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.auth-form-group .pwd-help strong {
  color: #374151;
}

/* ── Label row ── */
.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.auth-label-row label {
  margin-bottom: 0;
}

.auth-label-row a {
  color: #16a34a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.auth-label-row a:hover {
  color: #15803d;
  text-decoration: underline;
}

/* ── Submit Button ── */
.auth-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.auth-btn:hover {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Toggle password ── */
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  z-index: 2;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #16a34a;
}

/* ── Security badge ── */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: #9ca3af;
  font-size: 11px;
}

.security-badge i {
  font-size: 12px;
  color: #10b981;
}

/* ── Footer ── */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  color: #9ca3af;
  font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  body.auth-page {
    overflow-y: auto;
  }

  .auth-container {
    flex-direction: column;
    min-height: auto;
  }

  .auth-panel-left {
    flex: none;
    padding: 40px 24px;
    min-height: auto;
  }

  .auth-panel-content h1 {
    font-size: 22px;
  }

  .auth-panel-right {
    padding: 32px 24px;
  }

  .auth-features {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-panel-left {
    padding: 32px 20px;
  }

  .auth-panel-icon {
    width: 60px;
    height: 60px;
  }

  .auth-panel-icon i {
    font-size: 26px;
  }

  .auth-panel-content h1 {
    font-size: 20px;
  }

  .auth-panel-right {
    padding: 24px 20px;
  }

  .auth-logo img {
    max-width: 150px;
  }
}