* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  --accent-color: #5b8fc7;
  --accent-light: #8eb4d9;
  --success-color: #6fcf97;
  --text-primary: #053384;
  --text-secondary: #7f8c8d;
  --white: #ffffff;
  --background-light: #f5f7fa;
  --shadow-sm: 0 2px 8px rgba(91, 143, 199, 0.08);
  --shadow-md: 0 4px 20px rgba(91, 143, 199, 0.12);
  --shadow-lg: 0 10px 40px rgba(91, 143, 199, 0.15);
  --shadow-xl: 0 20px 60px rgba(91, 143, 199, 0.18);
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 50%, #f8f9fa 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.animated-bg::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(91, 143, 199, 0.08) 0%,
    transparent 50%
  );
  animation: bgSlide 20s ease-in-out infinite;
}

@keyframes bgSlide {
  0%,
  100% {
    transform: translate(0%, 0%);
  }

  50% {
    transform: translate(-10%, -10%);
  }
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 143, 199, 0.15) 0%,
    rgba(142, 180, 217, 0.05) 100%
  );
  animation: float 25s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 55%;
  left: 82%;
  animation-delay: 3s;
}

.shape:nth-child(3) {
  width: 90px;
  height: 90px;
  top: 75%;
  left: 15%;
  animation-delay: 6s;
}

.shape:nth-child(4) {
  width: 140px;
  height: 140px;
  top: 25%;
  left: 78%;
  animation-delay: 9s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  33% {
    transform: translate(15px, 25px) scale(1.1);
    opacity: 0.4;
  }

  66% {
    transform: translate(-15px, 40px) scale(0.9);
    opacity: 0.7;
  }
}

/* Main Container */
.container {
  position: relative;
  /* height: 100vh; */
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 24px;
  overflow: visible;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Panel - Info Section */
.info-panel {
  background: linear-gradient(135deg, #053384 0%, #8eb4d9 100%);
  padding: 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.info-panel::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: pulse 4s ease-in-out infinite;
}

.info-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: pulse 5s ease-in-out infinite;
  animation-delay: 1s;
}

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

  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

.info-content {
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo i {
  font-size: 42px;
}

.info-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.info-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.features {
  list-style: none;
  margin-top: 40px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 16px;
}

.features li i {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Right Panel - Form Section */
.form-panel {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #e8f0f7;
  border-radius: 14px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  background: #fafbfc;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(91, 143, 199, 0.08);
}

.form-control:focus + i {
  color: var(--accent-color);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.btn-register {
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-light) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(91, 143, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-register:hover::before {
  left: 100%;
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(91, 143, 199, 0.35);
}

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

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e1e8ed;
}

.divider span {
  padding: 0 15px;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid #e8f0f7;
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--accent-light);
  background: #f8fbfd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 143, 199, 0.15);
}

.social-btn i {
  font-size: 20px;
}

.login-link {
  text-align: center;
  margin-top: 25px;
  color: var(--text-secondary);
  font-size: 14px;
}

.login-link a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-link a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .info-panel {
    padding: 40px;
    text-align: center;
  }

  .info-content h1 {
    font-size: 32px;
  }

  .features {
    margin-top: 20px;
  }

  .features li {
    justify-content: center;
  }

  .form-panel {
    padding: 40px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 10px;
  }

  .info-panel,
  .form-panel {
    padding: 30px 20px;
  }

  .logo {
    font-size: 28px;
    justify-content: center;
  }

  .info-content h1 {
    font-size: 26px;
  }

  .info-content p {
    font-size: 16px;
  }

  .form-header h2 {
    font-size: 26px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}

/* Loading Animation */
.btn-register.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-register.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  background: linear-gradient(135deg, #920303 0%, #d71313 100%);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideDown 0.5s ease-out;
  box-shadow: 0 4px 15px rgba(111, 207, 151, 0.25);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #196237 0%, #7ce3a3 100%);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideDown 0.5s ease-out;
  box-shadow: 0 4px 15px rgba(111, 207, 151, 0.25);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message i {
  font-size: 24px;
}
.error-message i {
  font-size: 24px;
}
.success-message.show {
  display: flex;
}
.error-message.show {
  display: flex;
}
/* Password Strength */
.password-strength {
  height: 4px;
  background: #e1e8ed;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 33%;
  background: #f5576c;
}

.password-strength-bar.medium {
  width: 66%;
  background: #ffa726;
}

.password-strength-bar.strong {
  width: 100%;
  background: #38ef7d;
}

/* ============================================
   PREMIUM LOADING SCREEN STYLES
   ============================================ */

/* Loading Screen Container */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5b8fc7 0%, #8eb4d9 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Loading Animation Container */
.loading-content {
  text-align: center;
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading Logo */
.loading-logo {
  margin-bottom: 40px;
  animation: loadingFloat 3s ease-in-out infinite;
}

.loading-logo i {
  font-size: 80px;
  color: white;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes loadingFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Spinner - Modern Circle Design */
.loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.spinner-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.spinner-circle-1 {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: white;
  animation: spinCircle 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-circle-2 {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-bottom-color: white;
  animation: spinCircle 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite
    reverse;
  transform: scale(0.85);
}

.spinner-circle-3 {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: white;
  animation: spinCircle 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  transform: scale(0.7);
}

@keyframes spinCircle {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Loading Text */
.loading-text {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  animation: loadingPulse 2s ease-in-out infinite;
}

.loading-subtext {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Loading Dots Animation */
.loading-dots {
  display: inline-block;
}

.loading-dots span {
  animation: dotBlink 1.4s infinite;
  animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

/* Progress Bar */
.loading-progress {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7), white);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progressSlide 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progressSlide {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Decorative Particles */
.loading-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 1s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 1.5s;
}

.particle:nth-child(5) {
  left: 30%;
  animation-delay: 2s;
}

.particle:nth-child(6) {
  left: 70%;
  animation-delay: 2.5s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
    transform: translateY(90vh) scale(1);
  }

  90% {
    opacity: 0.6;
    transform: translateY(10vh) scale(1);
  }

  100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
}

/* Loading Screen Responsive */
@media (max-width: 576px) {
  .loading-logo i {
    font-size: 60px;
  }

  .loading-spinner {
    width: 90px;
    height: 90px;
  }

  .loading-text {
    font-size: 20px;
  }

  .loading-subtext {
    font-size: 14px;
  }

  .loading-progress {
    width: 250px;
  }
}
