/**
 * Login Page Styles - Matching Constant Contact Design
 */

/* Page Layout */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #7dd3fc 0%, #e0f2fe 25%, #ffffff 50%, #fce7f3 75%, #fda4af 100%);
}

.login-section {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 50px);
}

/* Left Column - Promo Content */
.left-column {
  flex: 1;
  background: #ffffff;
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 55%;
}

.promo-content {
  max-width: 520px;
  margin-top: 40px;
}

.promo-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 24px;
  font-style: italic;
}

.promo-description {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.promo-link {
  color: #0077be;
  font-size: 15px;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 40px;
}

.promo-link:hover {
  color: #005a8f;
}

.promo-image-container {
  position: relative;
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
}

.promo-image {
  width: 320px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Community Card Overlay */
.community-card {
  position: absolute;
  top: 40px;
  right: -60px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  width: 240px;
  z-index: 10;
}

.community-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.community-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.community-tab {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.community-tab-active {
  background: #0B2A6F;
  color: white;
  border-color: #0B2A6F;
}

.community-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.community-item:last-of-type {
  border-bottom: none;
}

.community-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
  flex-shrink: 0;
}

.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-item-content {
  flex: 1;
  min-width: 0;
}

.community-item-title {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 2px;
}

.community-item-author {
  font-size: 10px;
  color: #94a3b8;
}

.community-item-icons {
  display: flex;
  gap: 6px;
  font-size: 11px;
  opacity: 0.5;
}

.community-footer {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.community-footer-btn {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Right Column - Login Form */
.right-column {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 40px;
  max-width: 45%;
}

.login-form-container {
  width: 100%;
  max-width: 340px;
  padding-top: 20px;
}

.login-form {
  background: transparent;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-decoration: none;
}

.login-logo-img {
  height: 24px;
  width: auto;
}

.login-heading {
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.signup-container {
  margin-bottom: 24px;
}

.signup-container p {
  font-size: 13px;
  color: #475569;
}

.signup-link {
  color: #0077be;
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Form Fields */
.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 20px 40px 8px 0;
  font-size: 15px;
  border: none;
  border-bottom: 1px solid #d1d5db;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus {
  border-bottom-color: #0077be;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 4px;
  font-size: 11px;
  color: #64748b;
}

.form-label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 15px;
  color: #9ca3af;
  pointer-events: none;
  transition: all 0.2s;
}

.form-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0077be;
  transition: width 0.3s;
}

.form-input:focus ~ .form-underline {
  width: 100%;
}

.password-input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover svg {
  stroke: #374151;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: #0077be;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  margin-bottom: 14px;
}

.login-button:hover {
  background: #005a8f;
}

.login-button:active {
  transform: translateY(0);
}

.login-button.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* Remember Me */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.remember-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0077be;
  border: 1px solid #d1d5db;
  border-radius: 3px;
}

.remember-label {
  font-size: 12px;
  color: #475569;
}

/* Forgot Links */
.forgot-links {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.forgot-links a {
  font-size: 12px;
  color: #0077be;
  text-decoration: none;
}

.forgot-links a:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.social-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer */
.login-footer {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 20%, #a5b4fc 40%, #c4b5fd 50%, #f9a8d4 70%, #fb7185 85%, #f97316 100%);
  padding: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  font-size: 11px;
  color: #1e293b;
}

.footer-links a {
  color: #1e293b;
  text-decoration: none;
}

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

.privacy-link {
  font-style: italic;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .left-column {
    display: none;
  }
  
  .login-section {
    justify-content: center;
  }
  
  .right-column {
    max-width: 100%;
    padding: 40px 24px;
  }
  
  .login-form-container {
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .right-column {
    padding: 24px 16px;
  }
  
  .login-heading {
    font-size: 24px;
  }
  
  .login-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .footer-links {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
