/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
}

/* Login Container */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left Side - Branding */
.login-left {
  background: var(--gradient);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.branding {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 3rem;
}

.logo img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.branding h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.branding > p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.feature-icon {
  font-size: 1.5rem;
}

/* Right Side - Auth Forms */
.login-right {
  background: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 450px;
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-form.active {
  display: block;
}

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

.auth-form h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Buttons */
.btn-submit {
  width: 100%;
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

.btn-guest {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-guest:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.875rem;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--gray);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Back Home Link */
.back-home {
  margin-top: 2rem;
  text-align: center;
}

.back-home a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.back-home a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 40px 20px;
    min-height: 40vh;
  }

  .branding h1 {
    font-size: 2rem;
  }

  .branding > p {
    font-size: 1rem;
  }

  .features-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .login-right {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .login-left {
    min-height: 30vh;
  }

  .branding h1 {
    font-size: 1.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .auth-form h2 {
    font-size: 1.75rem;
  }
}
