/* ============ LOGIN PAGE STYLES ============ */
.login-body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark-bg, #0A0A1A);
  color: var(--text-primary, #FFFFFF);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Elements */
.login-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Floating Shapes */
.bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: #7C5CFC;
  top: -200px;
  right: -200px;
  animation: shapeFloat 15s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #00D4FF;
  bottom: -100px;
  left: -100px;
  animation: shapeFloat 18s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #FFD700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: shapePulse 8s ease-in-out infinite;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: #00D68F;
  top: 20%;
  right: 30%;
  animation: shapeFloat 12s ease-in-out infinite 2s;
}

/* Grid Pattern */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Glow Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: #7C5CFC;
  top: 10%;
  left: -100px;
  animation: glowFloat 10s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #00D4FF;
  bottom: 10%;
  right: -100px;
  animation: glowFloat 12s ease-in-out infinite reverse;
}

/* ============ LOGIN CONTAINER ============ */
.login-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 650px;
  background: rgba(18, 18, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: containerEntry 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ BRANDING SIDE ============ */
.login-branding {
  flex: 1;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(0, 212, 255, 0.05));
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 92, 252, 0.1), transparent 60%);
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 1;
}

/* Logo */
.branding-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 50px;
}

.logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--gradient-1, linear-gradient(135deg, #7C5CFC, #00D4FF));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-1, linear-gradient(135deg, #7C5CFC, #00D4FF));
  border-radius: 14px;
  animation: logoPulse 2s ease-in-out infinite;
}

.brand-name {
  font-size: 22px;
  font-weight: 600;
  color: white;
}

.brand-name span {
  background: var(--gradient-1, linear-gradient(135deg, #7C5CFC, #00D4FF));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Branding Text */
.branding-text {
  margin-bottom: 40px;
}

.branding-text h1 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.branding-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Features */
.branding-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.branding-feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background: rgba(124, 92, 252, 0.2);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary, #7C5CFC);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Stats */
.branding-stats {
  display: flex;
  gap: 30px;
}

.brand-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Branding Footer */
.branding-footer {
  position: relative;
  z-index: 1;
}

.security-badges {
  display: flex;
  gap: 15px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.security-badge i {
  color: #00D68F;
  font-size: 10px;
}

/* ============ FORM SECTION ============ */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.form-container {
  width: 100%;
  max-width: 420px;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #FFFFFF);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-secondary, #B4B4D0);
}

/* Social Login */
.social-login {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  background: var(--dark-card, #1A1A3E);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 12px;
  color: var(--text-primary, #FFFFFF);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.social-btn:hover {
  border-color: var(--primary, #7C5CFC);
  background: rgba(124, 92, 252, 0.1);
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 16px;
}

.google-btn i {
  color: #EA4335;
}

.apple-btn i {
  color: #FFFFFF;
}

.meta-btn i {
  color: #0082FB;
}

/* Divider */
.form-divider {
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(124, 92, 252, 0.15);
}

.form-divider span {
  background: var(--dark-surface, #12122A);
  padding: 0 15px;
  position: relative;
  font-size: 12px;
  color: var(--text-muted, #6B6B8A);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Groups */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #B4B4D0);
}

.form-label i {
  font-size: 12px;
  color: var(--primary, #7C5CFC);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 45px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.15);
  border-radius: 14px;
  color: var(--text-primary, #FFFFFF);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary, #7C5CFC);
  box-shadow: 0 0 25px rgba(124, 92, 252, 0.15);
  background: rgba(124, 92, 252, 0.05);
}

.form-input.error {
  border-color: #FF3D71;
  box-shadow: 0 0 15px rgba(255, 61, 113, 0.15);
}

.form-input.valid {
  border-color: #00D68F;
}

.form-input::placeholder {
  color: var(--text-muted, #6B6B8A);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted, #6B6B8A);
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-input:focus~.input-icon {
  color: var(--primary, #7C5CFC);
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted, #6B6B8A);
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--text-primary, #FFFFFF);
}

/* Input Status */
.input-status {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-input.valid~.input-status {
  opacity: 1;
  color: #00D68F;
}

.form-input.error~.input-status {
  opacity: 1;
  color: #FF3D71;
}

/* Error Messages */
.error-message {
  font-size: 11px;
  color: #FF3D71;
  min-height: 16px;
  display: none;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}

.error-message.show {
  display: flex;
}

.error-message::before {
  content: '⚠';
  font-size: 10px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary, #B4B4D0);
  user-select: none;
}

.checkbox-wrapper input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-wrapper input:checked~.checkmark {
  background: var(--gradient-1, linear-gradient(135deg, #7C5CFC, #00D4FF));
  border-color: transparent;
}

.checkmark::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-wrapper input:checked~.checkmark::after {
  opacity: 1;
}

.forgot-link {
  font-size: 13px;
  color: var(--primary, #7C5CFC);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #00D4FF;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-1, linear-gradient(135deg, #7C5CFC, #00D4FF));
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(124, 92, 252, 0.3);
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
  width: 400px;
  height: 400px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(124, 92, 252, 0.5);
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn.loading {
  pointer-events: none;
}

.login-btn.loading .btn-text,
.login-btn.loading .fa-arrow-right {
  opacity: 0;
}

.login-btn.loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  opacity: 0;
  font-size: 20px;
}

.btn-text,
.login-btn .fa-arrow-right {
  transition: opacity 0.3s ease;
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 25px;
}

.form-footer p {
  font-size: 14px;
  color: var(--text-secondary, #B4B4D0);
}

.form-footer a {
  color: var(--primary, #7C5CFC);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #00D4FF;
}

/* Quick Links */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.quick-links a {
  font-size: 12px;
  color: var(--text-muted, #6B6B8A);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: var(--primary, #7C5CFC);
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  min-width: 300px;
  animation: toastSlideIn 0.4s ease-out, toastSlideOut 0.4s ease-in 3.5s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.toast.success {
  background: linear-gradient(135deg, #00D68F, #00B884);
}

.toast.error {
  background: linear-gradient(135deg, #FF3D71, #FF6B6B);
}

.toast.info {
  background: linear-gradient(135deg, #7C5CFC, #00D4FF);
}

.toast i {
  font-size: 18px;
}

/* ============ ANIMATIONS ============ */
@keyframes containerEntry {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes shapePulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes glowFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -20px);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 500px;
  }

  .login-branding {
    padding: 30px;
  }

  .branding-text h1 {
    font-size: 28px;
  }

  .branding-features {
    display: none;
  }

  .branding-stats {
    display: none;
  }

  .branding-logo {
    margin-bottom: 25px;
  }

  .branding-text {
    margin-bottom: 0;
  }

  .login-form-section {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 15px;
  }

  .login-wrapper {
    border-radius: 20px;
    min-height: auto;
  }

  .login-branding {
    padding: 25px;
  }

  .branding-text h1 {
    font-size: 24px;
  }

  .login-form-section {
    padding: 25px 20px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .social-login {
    flex-direction: column;
  }

  .toast-container {
    left: 20px;
    right: 20px;
  }

  .toast {
    min-width: auto;
  }
}