
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* body{
    font-family: 'Montserrat', sans-serif;
} */
h1 {
    color: #5c6e97;
    font-weight: bold;
    margin: 0;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
}

a {
    color: #514A9D;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #3b8beb;
    background-color:#3b8beb;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #ffffff;
}

form {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 50px;
    min-height: 100%;
    height: auto;
    text-align: center;
    overflow-y: auto;
}

input {
    background-color: #eee;
    border: 2px solid transparent;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3b8beb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 139, 235, 0.1);
}

.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: 40px;
    width: 40px;
    /* color: #000; */
    color: #8590aa;
  
}
.container {
    background-color:#ffffff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 700px;
    height: auto;
    margin: 30px auto;
}
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-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;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #24C6DC;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #514A9D, #24C6DC);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #8076e9, #24C6DC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  color: white;
}
.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

#info {
  margin-top: 1rem;
  text-align: center; 
}

/* ============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  body {
    background: linear-gradient(135deg, #514A9D, #24C6DC);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }
  
  /* Stack forms vertically on mobile */
  .container {
    min-height: auto;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    background: #ffffff;
  }
  
  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    left: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }
  
  .sign-in-container {
    display: block;
  }
  
  .sign-up-container {
    display: none;
  }
  
  /* Show active form */
  .container.right-panel-active .sign-in-container {
    display: none;
  }
  
  .container.right-panel-active .sign-up-container {
    display: block;
  }
  
  /* Hide overlay on mobile */
  .overlay-container {
    display: none !important;
  }
  
  /* Mobile tabs - Industry Standard Design */
  .mobile-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .mobile-toggle button {
    flex: 1;
    padding: 14px 24px;
    min-height: 48px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  .mobile-toggle button:not(.active) {
    color: #666;
  }
  
  .mobile-toggle button.active {
    color: #ffffff;
  }
  
  /* Sliding background indicator */
  .mobile-toggle::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #3b8beb, #24C6DC);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(59, 139, 235, 0.3);
  }
  
  /* Move indicator when Sign Up is active */
  .mobile-toggle.signup-active::before {
    transform: translateX(calc(100% + 6px));
  }
  
  .mobile-toggle button:hover:not(.active) {
    color: #3b8beb;
  }
  
  .mobile-toggle button:active {
    transform: scale(0.98);
  }
  
  /* Form adjustments */
  form {
    padding: 35px 25px;
    min-height: auto;
  }
  
  .logo-container {
    margin-bottom: 25px;
  }
  
  .logo-container img {
    max-width: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    font-size: 26px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #514A9D, #24C6DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  span {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    display: block;
  }
  
  input {
    min-height: 52px;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background-color: #f8f9fa;
    padding: 15px 18px;
    transition: all 0.3s ease;
  }
  
  input:focus {
    border-color: #3b8beb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 139, 235, 0.1);
  }
  
  .password-container {
    width: 100%;
  }
  
  .password-toggle {
    right: 18px;
    top: 18px;
    font-size: 20px;
  }
  
  button[type="submit"] {
    min-height: 52px;
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #3b8beb, #24C6DC);
    box-shadow: 0 4px 15px rgba(59, 139, 235, 0.3);
    transition: all 0.3s ease;
  }
  
  button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 139, 235, 0.4);
  }
  
  button[type="submit"]:active {
    transform: translateY(0);
  }
  
  a {
    color: #3b8beb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: #24C6DC;
    transform: translateX(2px);
  }
  
  /* Improve spacing between form elements */
  form > * {
    margin-bottom: 15px;
  }
  
  form > button,
  form > a {
    margin-top: 10px;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
  
  body {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }
}

/* Logo styling */
.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-container img {
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Password toggle */
.password-container {
  position: relative;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: auto;
  width: auto;
  color: #666;
  font-size: 18px;
}

.password-toggle:hover {
  color: #3b8beb;
}

/* Form validation feedback */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

input.error {
  border: 2px solid #dc3545;
}

input.success {
  border: 2px solid #28a745;
}

/* Loading state */
button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Improved button hover effects */
button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 139, 235, 0.3);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}