/* ============================================
   reto100 v2 - Login Page Styles
   ============================================ */

/* Page Layout */
.login-page {
  min-height: 100vh;
  background: var(--background);
}

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

/* ============================================
   Left Side - Hero Section
   ============================================ */

.login-hero {
  background: linear-gradient(135deg, #1a2a4a 0%, #0B1220 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(228, 153, 51, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(228, 153, 51, 0.1) 0%, transparent 40%);
  animation: pulse 15s ease-in-out infinite;
}

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

.login-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.08"/></svg>');
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: white;
}

/* Brand Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-logo {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #E49933 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo span {
  font-weight: 600;
  opacity: 0.7;
}

.hero-badge {
  background: linear-gradient(135deg, #E49933, #C47F1F);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(228, 153, 51, 0.4);
}

/* Hero Title */
.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: #E49933;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #E49933, transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Benefits List */
.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(228, 153, 51, 0.1);
  border-color: rgba(228, 153, 51, 0.3);
  transform: translateX(5px);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(228, 153, 51, 0.2), rgba(228, 153, 51, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #E49933;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.benefit-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.benefit-text span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border: 2px solid #0B1220;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.social-proof p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.social-proof p strong {
  color: #E49933;
}

/* ============================================
   Right Side - Form Section
   ============================================ */

.login-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, #0f1829 0%, #0B1220 100%);
}

.form-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Auth Card */
.auth-card-new {
  background: linear-gradient(145deg, #141f35 0%, #0f192d 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(228, 153, 51, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Social Auth Buttons - LARGE & PROMINENT */
.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-social svg {
  flex-shrink: 0;
}

.btn-social span {
  flex: 1;
  text-align: center;
}

/* Google Button */
.btn-social-google {
  background: #ffffff;
  color: #1f2937;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-social-google:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Facebook Button */
.btn-social-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-social-facebook:hover {
  background: linear-gradient(135deg, #1a85ff 0%, #1877F2 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.auth-divider span {
  padding: 0 1rem;
}

/* Form Styles */
.auth-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-group input:focus {
  outline: none;
  border-color: #E49933;
  background: rgba(228, 153, 51, 0.05);
  box-shadow: 0 0 0 4px rgba(228, 153, 51, 0.1);
}

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #E49933 0%, #C47F1F 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(228, 153, 51, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(228, 153, 51, 0.4);
}

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

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-switch a {
  color: #E49933;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: #F0B05A;
}

/* Terms Text */
.terms-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.terms-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.terms-text a:hover {
  color: #E49933;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.trust-item svg {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
  .login-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-hero {
    display: flex;
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .hero-inner {
    max-width: 100%;
    text-align: center;
  }

  .brand-header {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-benefits {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .benefit-item {
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
  }

  .benefit-text strong {
    font-size: 0.9rem;
  }

  .benefit-text span {
    font-size: 0.8rem;
  }

  .social-proof {
    justify-content: center;
    padding: 1rem;
  }

  .social-proof p {
    font-size: 0.85rem;
  }

  .login-form-section {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .form-wrapper {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .login-hero {
    padding: 1.5rem 1rem;
  }

  .hero-logo {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-benefits {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .benefit-item {
    padding: 0.625rem 0.875rem;
  }

  .benefit-icon {
    width: 32px;
    height: 32px;
  }

  .social-proof {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-hero {
    padding: 1.25rem 1rem;
  }

  .brand-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .hero-logo {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .benefit-item {
    padding: 0.5rem 0.75rem;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
  }

  .benefit-text strong {
    font-size: 0.85rem;
  }

  .benefit-text span {
    font-size: 0.75rem;
  }

  .avatar {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .login-form-section {
    padding: 1.5rem 1rem;
  }

  .auth-card-new {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .card-header h2 {
    font-size: 1.5rem;
  }

  .btn-social {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .btn-submit {
    padding: 0.875rem 1.25rem;
  }

  .trust-badges {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .trust-item {
    font-size: 0.7rem;
  }
}

/* ============================================
   Animations
   ============================================ */

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

.auth-card-new {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }

.social-proof {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Button loading state */
.btn-social:disabled,
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   Phone Authentication Styles
   ============================================ */

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
  background: rgba(228, 153, 51, 0.15);
  border-color: rgba(228, 153, 51, 0.4);
  color: #E49933;
}

.auth-tab svg {
  opacity: 0.8;
}

.auth-tab.active svg {
  opacity: 1;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
  display: flex;
  gap: 8px;
}

.country-select {
  width: 110px;
  padding: 0.875rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.country-select:focus {
  outline: none;
  border-color: #E49933;
  background: rgba(255, 255, 255, 0.06);
}

.country-select option {
  background: #1a2a4a;
  color: #fff;
}

.phone-input-wrapper input {
  flex: 1;
}

/* OTP Styles */
.otp-info {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(228, 153, 51, 0.1);
  border-radius: 10px;
}

.otp-info p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.otp-info strong {
  color: #E49933;
  font-size: 1.1rem;
}

.otp-input {
  text-align: center;
  font-size: 1.5rem !important;
  font-weight: 600;
  letter-spacing: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
}

/* Link Buttons */
.btn-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  transition: color 0.2s ease;
}

.btn-link:hover:not(:disabled) {
  color: #E49933;
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#resendOtpBtn:not(:disabled) {
  color: #E49933;
}

/* Phone step transitions */
#phoneStep1, #phoneStep2 {
  animation: fadeInUp 0.3s ease-out;
}

/* ============================================
   Forgot Password Styles
   ============================================ */

.forgot-password-link {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password-link a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link a:hover {
  color: #E49933;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  animation: fadeInUp 0.3s ease-out;
}

.success-message svg {
  margin-bottom: 1rem;
}

.success-message h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.success-message p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
