/* Sign-in Page Styles - Keka Inspired Design */

/* Main Container */
.sign-in-container {
  min-height: 100vh;
  display: flex;
  background: var(--white);
  overflow: hidden;
}

/* Background Section (Left Side) */
.background-section {
  flex: 1;
  background: var(--primary-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}
html.dark-mode .background-section {
    background-color: var(--secondary-color);
}
.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color);

  z-index: 1;
}
html.dark-mode .background-overlay {
  background: var(--secondary-color);
}
.background-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 40px;
  max-width: 500px;
}

.background-logo img {
  max-width: 200px;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}

.background-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: "Luciole-Bold", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.background-subtitle {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.5;
  font-weight: 400;
}

/* Login Panel (Right Side) */
.login-panel {
  flex: 0 0 40%;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.login-content {
  width: 100%;
  max-width: 400px;
}

/* Login Title */
.login-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-family: "Luciole-Bold", sans-serif;
  text-align: left;
}

/* Email Form */
.email-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--secondary-color);
  font-family: "Luciole-Regular", sans-serif;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 195, 189, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

/* Continue Button */
.continue-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Luciole-Regular", sans-serif;
}

.continue-btn:hover {
  background: #0a9b96;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 195, 189, 0.3);
}

/* Separator */
.separator {
  position: relative;
  margin: 30px 0;
  text-align: center;
}

.separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.separator span {
  background: var(--white);
  color: #6b7280;
  padding: 0 20px;
  font-size: 14px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Social Login Options */
.social-login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: var(--white);
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Luciole-Regular", sans-serif;
  text-align: left;
}

.social-btn:hover {
  border-color: var(--primary-color);
  background: #f8fffe;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 195, 189, 0.1);
}

.social-btn i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.mobile-btn i {
  color: var(--primary-color);
}

.microsoft-btn i {
  color: #00a4ef;
}

.google-btn i {
  color: #4285f4;
}

.username-btn i {
  color: var(--secondary-color);
}

/* App Download Buttons */
.app-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Luciole-Regular", sans-serif;
  text-align: left;
}

.app-btn:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-btn i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.app-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-label {
  font-size: 12px;
  opacity: 0.8;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
}

/* Login Footer */
.login-footer {
  text-align: center;
}

.footer-logo img {
  max-width: 80px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0a9b96;
  text-decoration: underline;
}
.login-content .background-logo {
  display: none;
}
.login-content .background-logo img {
    filter: none;
    max-width: 150px;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .sign-in-container {
    flex-direction: column;
  }

  .background-section {
    flex: 0 0 40%;
    min-height: 40vh;
    display: none;
  }

  .login-panel {
    flex: 1;
    min-height: 60vh;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  }

  .background-title {
    font-size: 36px;
  }

  .background-subtitle {
    font-size: 18px;
  }

  .login-title {
    font-size: 28px;
    text-align: center;
  }
  .login-content .background-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .background-section {
    flex: 0 0 35%;
    min-height: 35vh;
  }

  .login-panel {
    flex: 1;
    min-height: 65vh;
    padding: 30px 20px;
  }

  .background-content {
    padding: 20px;
  }

  .background-logo img {
    max-width: 150px;
    margin-bottom: 20px;
  }

  .background-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .background-subtitle {
    font-size: 16px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .form-control {
    padding: 14px 16px;
    font-size: 16px;
  }

  .continue-btn {
    padding: 14px 20px;
    font-size: 16px;
  }

  .social-btn {
    padding: 12px 16px;
    font-size: 15px;
  }

  .app-btn {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .background-section {
    flex: 0 0 30%;
    min-height: 30vh;
  }

  .login-panel {
    flex: 1;
    min-height: 70vh;
    padding: 20px 16px;
  }

  .background-content {
    padding: 16px;
  }

  .background-logo img {
    max-width: 120px;
    margin-bottom: 15px;
  }

  .background-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .background-subtitle {
    font-size: 14px;
  }

  .login-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 16px;
  }

  .continue-btn {
    padding: 12px 18px;
    font-size: 15px;
  }

  .social-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .app-btn {
    padding: 10px 14px;
  }

  .app-text .app-label {
    font-size: 11px;
  }

  .app-text .app-name {
    font-size: 14px;
  }

  .footer-text {
    font-size: 11px;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-content {
  animation: fadeInUp 0.6s ease-out;
}

.background-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Focus states for accessibility */
.social-btn:focus,
.continue-btn:focus,
.form-control:focus,
.app-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading state for button */
.continue-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.continue-btn:disabled:hover {
  background: var(--primary-color);
  transform: none;
  box-shadow: none;
}

/* Hover effects for background */
.background-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
}
html.dark-mode .background-section::before {
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 70%
  );
}
.background-section:hover::before {
  transform: translateX(100%);
}

/* Dark Mode Styles */
html.dark-mode .sign-in-container {
  background: var(--black);
}

html.dark-mode .login-panel {
  background: var(--black);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

html.dark-mode .login-title {
  color: var(--white);
}

html.dark-mode .form-control {
  background: var(--secondary-color);
  border-color: var(--border);
  color: var(--white);
  backdrop-filter: var(--blur);
}

html.dark-mode .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 195, 189, 0.2);
}

html.dark-mode .form-control::placeholder {
  color: var(--light-text);
}

html.dark-mode .separator::before {
  background: var(--border);
}

html.dark-mode .separator span {
  background: var(--black);
  color: var(--light-text);
}

html.dark-mode .social-btn {
  background: var(--secondary-color);
  border-color: var(--border);
  color: var(--white);
  backdrop-filter: var(--blur);
}

html.dark-mode .social-btn:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(16, 195, 189, 0.2);
}

html.dark-mode .footer-text {
  color: var(--light-text);
}


html.dark-mode .um input[type="text"]:focus,
html.dark-mode .um input[type="email"]:focus,
html.dark-mode .um input[type="password"]:focus,
html.dark-mode .um textarea:focus,
html.dark-mode .um select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(16, 195, 189, 0.2) !important;
}

html.dark-mode .um input[type="text"]::placeholder,
html.dark-mode .um input[type="email"]::placeholder,
html.dark-mode .um input[type="password"]::placeholder,
html.dark-mode .um textarea::placeholder {
  color: var(--light-text) !important;
}

html.dark-mode .um label {
  color: var(--white) !important;
}

html.dark-mode .um .um-field-label label {
  color: var(--white) !important;
}
.um .um-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px #fff inset;
    -webkit-text-fill-color: #666 !important;
}
