:root {
  --primary-blue: #0088cc;
  --secondary-blue: #0099dd;
  --light-blue: #33aadd;
  --accent-blue: #0077bb;
  --dark-blue: #006699;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --border-color: #e2e8f0;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px rgba(0, 136, 204, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  min-height: 100vh;
  direction: rtl;
  position: relative;
  overflow-x: hidden;
}

@keyframes backgroundShift {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.9;
  }
}

.container {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--white);
  animation: slideUp 1s ease-out;
  position: relative;
  z-index: 2;
  border-radius: 0;
}

@media (min-width: 768px) {
  .container {
    margin: 0rem auto;
    border-radius: 24px;
    min-height: calc(100vh - 4rem);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.left-panel {
  flex: 1;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(0, 136, 204, 0.08) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(0, 119, 187, 0.05) 0%,
      transparent 40%
    );
  z-index: 1;
}

.form-container {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.welcome-section {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.welcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--medium-gray);
  font-weight: 400;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  animation: fadeInUp 1s ease-out calc(0.7s + var(--delay, 0s)) both;
}

.form-label {
  display: block;
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.7rem 2.3rem 0.7rem 3.5rem;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--light-gray);
  font-family: "Cairo", sans-serif;
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-blue);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15),
    0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input:focus + .input-icon {
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.forgot-password {
  text-align: left;
  margin-top: 0.75rem;
}

.forgot-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.forgot-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.forgot-link:hover::after {
  width: 100%;
}

.forgot-link:hover {
  color: var(--accent-blue);
}

.login-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  font-family: "Cairo", sans-serif;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 1s both;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.login-button:hover::before {
  left: 100%;
}

.login-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 136, 204, 0.5);
}

.login-button:active {
  transform: translateY(-1px);
}

.signup-section {
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.95rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.signup-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--accent-blue);
}

.right-panel {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 2rem;
  transition: background-image 1s ease-in-out;
}

#slideshow-panel {
  background: url("/images/4.jpg") center / cover no-repeat;
  transition: background-image 1s ease-in-out;
}

.right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.right-panel > * {
  position: relative;
  z-index: 1;
}

.decorative-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 70%
    );
  z-index: 1;
  animation: decorativePulse 6s ease-in-out infinite alternate;
}

@keyframes decorativePulse {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.brand-section {
  text-align: center;
  margin-bottom: 0rem;
  z-index: 3;
  position: relative;
  animation: brandEntrance 1.5s ease-out;
}

@keyframes brandEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brandGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes brandRipple {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0rem;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6),
      0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(0, 136, 204, 0.4);
    transform: scale(1.02);
  }
}

.brand-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1.6;
  animation: subtitleSlide 1.5s ease-out 0.5s both;
}

@keyframes subtitleSlide {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes welcomeWave {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(45deg);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-10px) rotateX(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatShapes 20s linear infinite;
}

.shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

.shape:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 14s;
}

@keyframes floatShapes {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 0.7;
  }
}

.right-content {
  text-align: center;
  color: var(--white);
  z-index: 3;
  position: relative;
  max-width: 500px;
}

.illustration-container {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  position: relative;
}

.central-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: centralPulse 4s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.icon-orbit {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: orbitFloat 6s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.icon-orbit i {
  font-size: 1rem;
}

.icon-orbit:nth-child(1) {
  top: 20px;
  right: 60px;
  animation-delay: 0s;
}

.icon-orbit:nth-child(2) {
  top: 80px;
  left: 20px;
  animation-delay: 1.5s;
}

.icon-orbit:nth-child(3) {
  bottom: 80px;
  right: 20px;
  animation-delay: 3s;
}

.icon-orbit:nth-child(4) {
  bottom: 20px;
  left: 60px;
  animation-delay: 4.5s;
}

@keyframes centralPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
      0 0 0 20px rgba(255, 255, 255, 0);
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
  75% {
    transform: translateY(-20px) rotate(7deg);
  }
}

.content-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out 1.5s both;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-description {
  color: #ffff;
  font-size: 0.8rem;
  margin: 15px 0;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 1.8s both;
  font-weight: 400;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .login-button {
  background: linear-gradient(135deg, var(--medium-gray), #6b7280);
}

/* Success animation */
.success .login-button {
  background: linear-gradient(135deg, var(--success-green), #059669);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .right-panel {
    order: -1;
    min-height: 40vh;
    padding: 1.5rem;
  }

  .left-panel {
    padding: 2rem 1.5rem;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .welcome-title {
    font-size: 1rem;
  }

  .illustration-container {
    width: 250px;
    height: 250px;
  }

  .central-icon {
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  .icon-orbit {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }

  .content-title {
    font-size: 2rem;
  }

  .content-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .left-panel {
    padding: 1.5rem 1rem;
  }

  .right-panel {
    max-height: 15vh;
    min-height: 43vh;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .brand-logo i {
    font-size: 2rem;
  }

  .form-input {
    padding: 0.875rem 2.5rem 0.875rem 3rem;
  }

  .illustration-container {
    width: 250px;
    height: 200px;
  }

  .central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;

    height: 60px;
  }

  .floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .icon-orbit {
    position: absolute;
    width: 60px;
    height: 60px;
  }

  .icon-orbit i {
    font-size: 0.8rem;
  }
}

.footer {
  background-color: #006fa6;
  color: #fff;
  padding: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 50px;
  border-radius: 10px;
  width: auto;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #f1c40f;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-logo img {
    height: 40px;
  }
}
