* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #10b981;
  --error: #ef4444;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f1f5f9;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
  background-color: var(--dark);
  display: flex;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(
    circle at top right,
    var(--darker) 0%,
    var(--dark) 100%
  );
  overflow: hidden;
}

.noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.3;
}

.grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: -1;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.sphere-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.15),
    rgba(99, 102, 241, 0) 70%
  );
  animation: float 20s ease-in-out infinite alternate;
}

.sphere-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -100px;
  background: radial-gradient(
    circle at center,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0) 70%
  );
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, 5%) scale(1.1);
  }
  100% {
    transform: translate(5%, -5%) scale(0.9);
  }
}

/* Main Layout */
.login-page {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  position: relative;
  min-width: 400px;
}

.right-panel {
  width: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .login-page {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    min-width: unset;
  }

  .left-panel {
    height: auto;
    padding: 2rem 2rem 1rem;
  }

  .right-panel {
    flex: 1;
    padding: 0 2rem 2rem;
  }
}

/* Brand Logo & Header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    top: -100%;
    left: -100%;
  }
  20% {
    top: 100%;
    left: 100%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-text {
  margin-top: 3rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.intro-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(to right, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-text p {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-400);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

.feature-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-300);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: auto;
  padding-top: 2rem;
}

.footer nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer nav a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer nav a:hover {
  color: var(--white);
}

/* Login Form */
.login-container {
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.8s var(--ease-out-expo) forwards;
  transform: translateY(30px);
  opacity: 0;
  overflow: hidden;
  position: relative;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    to bottom right,
    rgba(99, 102, 241, 0.6),
    rgba(16, 185, 129, 0.1),
    rgba(99, 102, 241, 0)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Login header */
.login-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.login-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
  font-weight: 700;
}

.login-header p {
  color: var(--gray-400);
  font-size: 1rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: none;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.tab.active {
  color: var(--white);
}

.tab-bg {
  position: absolute;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  left: 0;
  top: 0;
  width: 110px;
  z-index: 1;
}

/* Form elements */
.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-300);
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
  transition: var(--transition);
}

.input-field {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-field:focus + .form-icon {
  color: var(--primary-light);
}

.input-field::placeholder {
  color: var(--gray-500);
  opacity: 0.7;
}

/* Input validation */
.input-field:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

.input-field:invalid:not(:focus):not(:placeholder-shown) + .form-icon {
  color: var(--error);
}

/* Helper text */
.helper-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  opacity: 0;
  transition: var(--transition);
  height: 0;
  overflow: hidden;
}

.input-field:focus ~ .helper-text,
.input-field:invalid:not(:focus):not(:placeholder-shown) ~ .helper-text {
  opacity: 1;
  height: auto;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0.5rem;
}

.password-toggle:hover {
  color: var(--primary-light);
}

/* Remember me & Forgot password */
.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.remember-me input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.remember-me input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
}

.remember-me label {
  font-size: 0.85rem;
  color: var(--gray-400);
  cursor: pointer;
}

.forgot-password a {
  color: var(--gray-400);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.forgot-password a:hover {
  color: var(--primary-light);
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 14px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.login-button:hover::before {
  opacity: 1;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

/* Loading state */
.login-button.loading .button-text {
  visibility: hidden;
  opacity: 0;
}

.login-button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Social Login */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.separator::before {
  margin-right: 1rem;
}

.separator::after {
  margin-left: 1rem;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-300);
  border: none;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.social-btn:active {
  transform: translateY(0);
}

.social-btn i {
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-btn:hover i {
  transform: scale(1.1);
}

.signup-link {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-400);
}

.signup-link a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Focus states */
.input-field:focus-visible,
button:focus-visible,
.tab:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .intro-text h1 {
    font-size: 2.25rem;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .feature {
    width: calc(50% - 0.5rem);
  }

  .footer {
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 2rem;
  }

  .login-header h2 {
    font-size: 1.75rem;
  }

  .intro-text {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .features {
    flex-direction: column;
  }

  .feature {
    width: 100%;
  }

  .form-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .login-container {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .footer nav ul {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .input-field {
    padding: 0.85rem 1rem 0.85rem 2.8rem;
  }

  .social-btn {
    width: 3rem;
    height: 3rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-1 {
  animation-delay: 0.2s;
}

.fade-in-2 {
  animation-delay: 0.4s;
}

.fade-in-3 {
  animation-delay: 0.6s;
}

.fade-in-4 {
  animation-delay: 0.8s;
}

/* Add these new styles at the end of your existing CSS */

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: block;
}

/* Light Theme */
[data-theme="light"] {
  --dark: #f8fafc;
  --darker: #e2e8f0;
  --light: #0f172a;
  --white: #ffffff;
  --gray-100: #0f172a;
  --gray-200: #1e293b;
  --gray-300: #334155;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --text-dark: #1e293b;
  --text-light: #64748b;
}

[data-theme="light"] .background {
  background: radial-gradient(
    circle at top right,
    var(--darker) 0%,
    var(--dark) 100%
  );
}

[data-theme="light"] .login-container {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .input-field {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--gray-200);
}

[data-theme="light"] .login-header h2,
[data-theme="light"] .feature-text,
[data-theme="light"] .intro-text h1,
[data-theme="light"] .logo-text {
  color: var(--gray-200);
  background: linear-gradient(to right, var(--gray-200), var(--gray-300));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .intro-text p,
[data-theme="light"] .login-header p,
[data-theme="light"] .footer nav a,
[data-theme="light"] .footer span,
[data-theme="light"] .feature-icon {
  color: var(--gray-400);
}

[data-theme="light"] .feature-icon {
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .social-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--gray-300);
}

/* Mobile Bank Logo */
.bank-logo-mobile {
  display: none;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Security Notice */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 1.5rem 0;
}

.security-notice i {
  color: var(--accent);
}

/* App Download */
.app-download {
  margin: 2rem 0;
}

.app-download p {
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.download-buttons {
  display: flex;
  gap: 0.75rem;
}

.app-store, .play-store {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.app-store {
  background: rgba(0, 0, 0, 0.2);
  color: var(--gray-200);
}

.play-store {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-200);
}

.app-store:hover, .play-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Mobile View Reordering */
@media (max-width: 1100px) {
  .login-page {
    flex-direction: column;
  }

  .right-panel {
    order: -1;
    padding: 1rem 1.5rem 1.5rem;
  }

  .left-panel {
    padding: 1.5rem 1.5rem 2rem;
  }

  .bank-logo-mobile {
    display: block;
  }

  .brand {
    display: none;
  }

  .login-container {
    padding: 1.5rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

/* Registration Form Specific Styles */
.registration-steps {
  margin-bottom: 2.5rem;
}

.step-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.5rem;
}

.step-progress-bar {
  position: absolute;
  height: 4px;
  background: var(--primary);
  top: 15px;
  left: 0;
  transition: var(--transition);
  z-index: 1;
}

.step-progress::before {
  content: '';
  position: absolute;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  top: 15px;
  left: 0;
  right: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 25%;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-weight: 600;
  transition: var(--transition);
}

.step.active .step-number {
  background: var(--primary);
  color: white;
}

.step.completed .step-number {
  background: var(--accent);
  color: white;
}

.step-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--gray-200);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.prev-step, .next-step {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.prev-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
}

.prev-step:hover {
  background: rgba(255, 255, 255, 0.1);
}

.next-step {
  background: var(--primary);
  color: white;
  border: none;
}

.next-step:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: #0ea371;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Form Rows */
.form-row {
  display: flex;
  gap: 1rem;
}

.half-width {
  flex: 1;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: var(--gray-500);
  border-radius: 2px;
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

.strength-text {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.password-requirements {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.password-requirements li {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-requirements .fa-check {
  color: var(--accent);
  font-size: 0.7rem;
}

/* Verification Step */
.verification-step {
  text-align: center;
}

.verification-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.verification-step h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.verification-step p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.user-email {
  color: var(--primary-light);
}

.verification-code {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.code-input {
  width: 40px;
  height: 50px;
  text-align: center;
  font-size: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.resend-code {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.resend-code a {
  color: var(--primary-light);
  text-decoration: none;
}

/* Document Upload */
.document-upload {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.document-upload h4 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.document-upload p {
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary);
}

.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.upload-area.has-file {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.upload-area i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.upload-area p {
  margin: 0;
  color: var(--gray-300);
}

#idDocument {
  display: none;
}

/* Error States */
.input-field.error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

.input-field.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .step-label {
    display: none;
  }
  
  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .half-width {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .verification-code {
    gap: 0.5rem;
  }
  
  .code-input {
    width: 35px;
    height: 45px;
  }
  
  .upload-area {
    padding: 1.5rem;
  }
}


/* Mobile-first adjustments */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
}

.left-panel {
  display: none; /* Hide the left panel completely on mobile */
}

.right-panel {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: 16px;
  animation: none; /* Remove animation on mobile for better performance */
  transform: none;
  opacity: 1;
}

/* Form element adjustments for mobile */
.input-field {
  padding: 0.85rem 1rem 0.85rem 2.8rem;
}

.login-button, .submit-btn {
  padding: 0.9rem;
}

/* Step progress adjustments */
.step-progress {
  margin-bottom: 1rem;
}

.step-label {
  display: none; /* Hide step labels on mobile */
}

.step-number {
  width: 25px;
  height: 25px;
  font-size: 0.8rem;
}

/* Verification code inputs */
.verification-code {
  gap: 0.5rem;
}

.code-input {
  width: 35px;
  height: 45px;
  font-size: 1.1rem;
}

/* Show the mobile header */
.bank-logo-mobile {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Tablet and Desktop View */
@media (min-width: 768px) {
  .login-page {
    flex-direction: row;
    padding: 0;
  }
  
  .left-panel {
    display: flex; /* Show left panel on larger screens */
  }
  
  .right-panel {
    width: 550px;
    padding: 2rem;
  }
  
  .login-container {
    max-width: 480px;
    padding: 2.5rem;
    animation: slideUp 0.8s var(--ease-out-expo) forwards;
    transform: translateY(30px);
    opacity: 0;
  }
  
  .bank-logo-mobile {
    display: none;
  }
  
  .step-label {
    display: block;
  }
}

/* Forgot Password Page */
.back-to-login {
  text-align: center;
  margin-top: 1.5rem;
}

.back-to-login a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.back-to-login a:hover {
  color: var(--primary-light);
}

/* Verification Success Page */
.verification-success {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.verification-success h2 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.verification-success p {
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.success-actions {
  margin-top: 2rem;
}

.download-app {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-app p {
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Verification Code Inputs */
.verification-code {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.code-input {
  width: 45px;
  height: 55px;
  text-align: center;
  font-size: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: var(--transition);
}

.code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.resend-code {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
}

.resend-code a {
  color: var(--primary-light);
  text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .verification-code {
    gap: 0.5rem;
  }
  
  .code-input {
    width: 40px;
    height: 50px;
  }
  
  .success-icon {
    font-size: 3rem;
  }
}