/* CSS Document */
@charset "UTF-8";

@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakh-Medium.eot');
    src: url('fonts/YekanBakh-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/YekanBakh-Medium.woff2') format('woff2'),
        url('fonts/YekanBakh-Medium.woff') format('woff'),
        url('fonts/YekanBakh-Medium.ttf') format('truetype'),
        url('fonts/YekanBakh-Medium.svg#YekanBakh-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


* {
  box-sizing: border-box;
  font-family: "Yekan Bakh", Tahoma, Arial, sans-serif;
}

body {
  background: #f6f5f7;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  margin: -20px 0 50px;
    font-family: 'Yekan Bakh','Vazir';
  direction: rtl;
}

h1 {
  font-weight: bold;
  margin: 0;
  font-size: 24px;
}

h2 {
  text-align: center;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

span {
  font-size: 12px;
  color: #666;
  margin: 10px 0;
}

a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
  transition: color 0.3s;
}

a:hover {
  color: #FF416C;
}

button {
  border-radius: 20px;
  border: 1px solid #FF4B2B;
  background-color: #FF4B2B;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #ff3a1a;
  transform: scale(1.05);
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

button.ghost {
  background-color: transparent;
  border-color: #FFFFFF;
}

button.ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

form {
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  height: 100%;
  text-align: center;
}

input {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  outline: none;
  border-color: #FF416C;
  box-shadow: 0 0 0 2px rgba(255, 65, 108, 0.2);
}

input::placeholder {
  color: #999;
}

.container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2),
  0 15px 15px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  width: 850px;
  max-width: 95%;
  min-height: 550px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  right: 0;
  width: 50%;
  z-index: 2;
}

.container.left-panel-active .sign-in-container {
  transform: translateX(-100%);
}

.sign-up-container {
  right: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.left-panel-active .sign-up-container {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

.overlay-container {
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.left-panel-active .overlay-container{
  transform: translateX(100%);
}

.overlay {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #FFFFFF;
  position: relative;
  right: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.left-panel-active .overlay {
  transform: translateX(-50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-right {
  transform: translateX(20%);
}

.container.left-panel-active .overlay-right {
  transform: translateX(0);
}

.overlay-left {
  left: 0;
  transform: translateX(0);
}

.container.left-panel-active .overlay-left {
  transform: translateX(-20%);
}

.social-container {
  margin: 20px 0;
}

.social-container a {
  border: 1px solid #DDDDDD;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  height: 45px;
  width: 45px;
  color: #333;
  transition: all 0.3s;
}

.social-container a:hover {
  background-color: #FF416C;
  border-color: #FF416C;
  color: white;
  transform: translateY(-3px);
}

.alert {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 5px;
  width: 100%;
  font-size: 13px;
  text-align: right;
}

.alert-error {
  background-color: #ffe6e6;
  border: 1px solid #ff9999;
  color: #cc0000;
}

.alert-success {
  background-color: #e6ffe6;
  border: 1px solid #99ff99;
  color: #009900;
}

.phone-hint {
  display: block;
  font-size: 11px;
  color: #666;
  text-align: right;
  width: 100%;
  margin: -5px 0 10px 0;
  padding: 0 5px;
}

footer {
  background-color: rgba(34, 34, 34, 0.9);
  color: #fff;
  font-size: 14px;
  bottom: 0;
  position: fixed;
  right: 0;
  left: 0;
  text-align: center;
  z-index: 999;
  padding: 10px 0;
  backdrop-filter: blur(5px);
}

footer p {
  margin: 5px 0;
  font-size: 13px;
}

footer i {
  color: #FF416C;
  margin: 0 5px;
}

footer a {
  color: #4db8ff;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #80ccff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    min-height: 500px;
  }
  
  .overlay-container {
    display: none;
  }
  
  .sign-in-container,
  .sign-up-container {
    width: 100%;
  }
  
  .container.left-panel-active .sign-in-container {
    transform: translateX(100%);
  }
  
  .container.left-panel-active .sign-up-container {
    transform: translateX(0);
  }
  
  .overlay {
    display: none;
  }
  
  form {
    padding: 0 20px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  /* بخش تعویض فرم در موبایل */
.mobile-switch {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
    width: 100%;
}

.mobile-switch .btn-outline-primary {
    border-color: #7c3aed;
    color: #7c3aed;
}

.mobile-switch .btn-outline-primary:hover {
    background-color: #7c3aed;
    color: white;
}
}

@media (max-width: 768px) {
    /* نمایش دکمه‌های تعویض در موبایل */
    .mobile-switch {
        display: block !important;
    }
    
    /* مخفی کردن overlay در موبایل */
    .overlay-container {
        display: none !important;
    }
    
    /* نمایش فرم‌ها به صورت جداگانه */
    .container.left-panel-active .sign-in-container {
        display: none !important;
    }
    
    .container:not(.left-panel-active) .sign-up-container {
        display: none !important;
    }
    
    .sign-in-container,
    .sign-up-container {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        width: 100% !important;
    }
}
/* Animation for form switching */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* بخش تعویض فرم در موبایل */
.mobile-switch {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
    width: 100%;
}

.mobile-switch .btn-outline-primary {
    border-color: #7c3aed;
    color: #7c3aed;
}

.mobile-switch .btn-outline-primary:hover {
    background-color: #7c3aed;
    color: white;
}