/**
 * DailyYield Writers - Professional Authentication Styles
 * Inspired by modern two-column layouts
 */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --font-primary: "Red Hat Display", sans-serif;
  --font-secondary: "DM Sans", sans-serif;

  --color-primary: #20282D;
  --color-accent: #20282D;
  --color-accent-light: #4b5563;
  --color-title: #141416;
  --color-body: #5D666F;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-bg: #f8fafc;

  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.account-page-body {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  font-family: var(--font-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.account-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.account-card {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 600px;
}

/* Image Section */
.account-image {
  flex: 1;
  position: relative;
  background: #000;
}

.account-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(1px);
}

.image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: var(--color-white);
  text-align: center;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.image-content h2 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
}

.image-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Form Section */
.account-form {
  flex: 1;
  padding: 3.5rem;
  background: var(--color-white);
}

.account-form h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--color-body);
  margin-bottom: 2.5rem;
}

/* Tab Toggle */
.toggle-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.tab1-btn {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab1-btn.active {
  color: var(--color-title);
}

.tab1-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

/* Form Fields */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 0.5rem;
}

.input-control {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #94a3b8 !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-secondary) !important;
  font-size: 0.95rem !important;
  color: var(--color-title) !important;
  background: #fff !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-control::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
  opacity: 1;
}

.input-control:focus {
  outline: none !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(32, 40, 45, 0.1) !important;
}

/* Row for Name fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Checkbox & Links */
.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-body);
  cursor: pointer;
}

.forgot-link,
.login-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-body);
}

/* Spinner */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s infinite linear;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Global Message */
.global-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.global-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.global-message.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Social Login */
.social-login {
  margin-top: 2rem;
  text-align: center;
}

.divider-text {
  position: relative;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--color-border);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

.social-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-title);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Animations */
.account-form-section {
  display: none;
}

.account-form-section.active {
  display: block;
  animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .account-image {
    display: none;
  }

  .account-card {
    max-width: 500px;
  }
}

@media (max-width: 576px) {
  .account-card {
    border-radius: 0;
    box-shadow: none;
  }

  .account-wrapper {
    padding: 0;
  }

  .account-form {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}