/* Reset login screen to split container */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999; /* ensure it sits above everything */
  background: #0f1013;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
}

/* Left side panel (Branding) */
.login-branding {
  flex: 1.1;
  background: #0a0b0d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.branding-header {
  display: flex;
  align-items: center;
}

.branding-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.branding-content {
  max-width: 480px;
  margin-top: auto;
  margin-bottom: 24px;
  z-index: 2;
}

.branding-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.5px;
}

.branding-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.branding-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.branding-mockup {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  z-index: 1;
  opacity: 0.95;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.branding-mockup img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.login-branding:hover .branding-mockup {
  transform: scale(1.02) translateY(-4px);
}

/* Right side panel (Auth Form) */
.login-auth {
  flex: 0.9;
  background: #0f1013;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
}

.auth-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}
.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.auth-link {
  color: #fff;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: #ccc;
}

.font-sm {
  font-size: 13px;
}

/* Social buttons */
.social-logins {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  color: #121417;
  border: 1px solid #e1e4ea;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-btn:hover {
  background: #f4f5f8;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.social-icon {
  flex-shrink: 0;
}

/* Or divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #8a8f98;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
  margin-right: 16px;
}

.auth-divider::after {
  margin-left: 16px;
}

/* Inputs and labels */
.login-auth .form-group {
  margin-bottom: 16px;
}

.login-auth .form-input {
  width: 100%;
  background: #191b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  transition: all 0.15s ease;
}

.login-auth .form-input:focus {
  outline: none;
  border-color: #fff;
  background: #1e202a;
}

.login-auth .form-input::placeholder {
  color: #5b6270;
}

/* Error messages */
.login-auth .login-error {
  font-size: 13px;
  color: #ff4d4f;
  min-height: 20px;
  margin-bottom: 16px;
  text-align: left;
}

/* Buttons and Links at the bottom */
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

#login-btn {
  background: #2b2e38;
  color: #8a8f98;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#login-btn:not(:disabled) {
  background: #fff;
  color: #000;
}

#login-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

#login-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
}

.auth-footer .auth-link {
  color: #8a8f98;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.auth-footer .auth-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Responsive */
@media (max-width: 1023px) {
  .login-branding {
    display: none;
  }
  .login-auth {
    flex: 1;
    padding: 32px 24px;
  }
}
